Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.2 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ane16Dec92: added NTTimerLoop class (named Os2TimerLoop class in os2timmn.h)
  7. * pcy28Jan93: Moved Loop obj to top to resolve refernce
  8. * TSC20May93: Created from os2timmn.h
  9. * pcy08Apr94: Trim size, use static iterators, dead code removal
  10. * tjg26Jan98: Added Stop method
  11. * mwh18Nov97: removed #include "MainApp.h"
  12. */
  13. #ifndef _NTTIMMN_H
  14. #define _NTTIMMN_H
  15. #include <time.h>
  16. #include "apc.h"
  17. #include "_defs.h"
  18. #include "err.h"
  19. #include "apcobj.h"
  20. #include "list.h"
  21. #include "event.h"
  22. #include "update.h"
  23. #include "timerman.h"
  24. #include "thread.h"
  25. _CLASSDEF(EventTimer)
  26. _CLASSDEF(DateTimeObj)
  27. _CLASSDEF(DateObj)
  28. _CLASSDEF(TimeObj)
  29. _CLASSDEF(NTTimerManager)
  30. class NTTimerLoop : public Threadable
  31. {
  32. public:
  33. NTTimerLoop (PNTTimerManager aMgr);
  34. virtual VOID ThreadMain();
  35. private:
  36. PNTTimerManager theManager;
  37. };
  38. class NTTimerManager : public TimerManager
  39. {
  40. public:
  41. NTTimerManager(PMainApplication anApplication);
  42. virtual ~NTTimerManager();
  43. VOID Wait(ULONG MilliSecondDelay);
  44. VOID Stop();
  45. friend NTTimerLoop;
  46. private:
  47. PThread theTimerThread;
  48. };
  49. #endif