EventClass.h
Go to the documentation of this file.
00001 //
00002 // EventClass.h: header file
00003 //
00004 // Copyright (C) Walter E. Capers.  All rights reserved
00005 //
00006 // This source is free to use as you like.  If you make
00007 // any changes please keep me in the loop.  Email them to
00008 // walt.capers@comcast.net.
00009 //
00010 // PURPOSE:
00011 //
00012 //  To implement event signals as a C++ object
00013 //
00014 // REVISIONS
00015 // =======================================================
00016 // Date: 10.25.07        
00017 // Name: Walter E. Capers
00018 // Description: File creation
00019 //
00020 // Date:
00021 // Name:
00022 // Description:
00023 //
00024 //
00025 #ifndef EVENT_CLASS
00026 #define EVENT_CLASS
00027 
00028 class CEventClass
00029 {
00030 private:
00031 #ifdef WINDOWS
00032         HANDLE m_event;
00033 #else
00034         pthread_cond_t m_ready;
00035         pthread_mutex_t m_lock;
00036 #endif
00037 public:
00038         BOOL m_bCreated;
00039         void Set();
00040         BOOL Wait();
00041         void Reset();
00042         CEventClass(void);
00043         ~CEventClass(void);
00044 };
00045 
00046 #endif
00047 


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12