00001 #ifndef __CHM_MANUAL_RESET_EVENT_CLASS_H__ 00002 #define __CHM_MANUAL_RESET_EVENT_CLASS_H__ 00003 //--------------------------------------------------------------------------- 00004 // Copyright (C) 1997-2009 iNTERFACEWARE Inc. All Rights Reserved 00005 // 00006 // Module: CHMmanualResetEvent class 00007 // 00008 // Author: Steven Dodd 00009 // Date: Jan 28, 2009 00010 // Revision: $Revision: 1.2 $ 00011 // 00012 // Last Edit Date: $Date: 2009-02-19 03:35:02 $ 00013 // Source: $Source: /home/cvs/cvsroot/CHM/CHMmanualResetEvent.h,v $ 00014 //--------------------------------------------------------------------------- 00015 #include <CHM/CHMminimumInclude.h> 00016 00024 class CHMmanualResetEvent 00025 { 00026 public: 00030 CHMmanualResetEvent(); 00031 00035 ~CHMmanualResetEvent(); 00036 00038 void reset(); 00039 00041 void signal(); 00042 00044 void wait(); 00045 00049 CHMboolean wait( CHMuint32 TimeoutInMilliseconds ); 00050 00051 private: 00052 CHMeventHandle EventHandle; 00053 CHMmanualResetEvent& operator=(const CHMmanualResetEvent& Orig); // not allowed 00054 CHMmanualResetEvent(const CHMmanualResetEvent& Orig); // not allowed 00055 }; 00056 00057 #endif // end of defensive include