From Valeriy Onuchin :
From Valeriy Onuchin :


I rewrote TWinNTSystem::DispatchOneEvent.
 - rudimentary code inherited from "old win32" and TUnixSystem was removed
 -  TWinNTSystem::DispatchOneEvent has the same "logic" as  TUnixSystem::DispatchOneEvent,
    i.e. keep priority for different types of events:
     1. handle GUI events (gui input, gui refreshing)
     2. handle signal handlers
     3. handle syncronous timers
     4. handle file handlers (e.g. sockets)

    I'd like to point on few important things specific to  win32gdk implementation:
    1. it doesn't contain blocking (like MsgWaitForMultipleObjects or select under unix).
        To  prevent from 100% CPU time occupation ::SleepEx(1, 1) is used on return.
    2. masking file descriptors is not implemented, i.e. we process all file descriptors.

  Rewriting this code was from my todo list, but was pushed by recent request
  from Roger Hill which uses win32gdk inside MFC (MicrosoftFoundationClasses)
  enviroment running ROOT event handling inside MFC event loop
  and discussion in RootForum about   TTimer implementation
  http://root.cern.ch/phpBB2/viewtopic.php?t=311


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@7882 27541ba8-7e3a-0410-8455-c3a389f83636

dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT