CWin32Event Class Reference#include <Win32Event.h>
Inheritance diagram for CWin32Event:
![]()
Collaboration diagram for CWin32Event:
![]()
Detailed DescriptionDefinition at line 47 of file Win32Event.h. Constructor & Destructor Documentation
Definition at line 49 of file Win32Event.cpp. 00051 : CGenericEvent(bInitialState, 00052 bManualReset, 00053 pEventName), 00054 m_hEvent(NULL) 00055 { 00056 //Create the event 00057 m_hEvent=CreateEvent(NULL, 00058 bManualReset, 00059 bInitialState, 00060 pEventName); 00061 00062 //Do we have the event 00063 if (!m_hEvent) 00064 throw std::string("Failed to create event!"); 00065 00066 //Check if we are the owners 00067 if (pEventName && 00068 GetLastError()!=ERROR_ALREADY_EXISTS) 00069 SetFirst(); 00070 }
Member Function Documentation
Implements CWaitableObject. Definition at line 113 of file Win32Event.cpp. 00114 { 00115 Reset(); 00116 }
Implements CGenericEvent. Definition at line 84 of file Win32Event.cpp. 00085 { 00086 DWORD dwWaitResult; 00087 00088 //Wait for the mutex 00089 dwWaitResult=WaitForSingleObject(m_hEvent, 00090 ulMSTimeout); 00091 00092 //Check why did we quit 00093 return dwWaitResult==WAIT_TIMEOUT; 00094 }
The documentation for this class was generated from the following files: |