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 47 of file Win32Event.cpp. 00049 : CGenericEvent(bInitialState, 00050 bManualReset, 00051 pEventName), 00052 m_hEvent(NULL) 00053 { 00054 //Create the event 00055 m_hEvent=CreateEvent(NULL, 00056 bManualReset, 00057 bInitialState, 00058 pEventName); 00059 00060 //Check if we are the owners 00061 if (pEventName && 00062 GetLastError()!=ERROR_ALREADY_EXISTS) 00063 SetFirst(); 00064 }
Member Function Documentation
Implements CWaitableObject. Definition at line 106 of file Win32Event.cpp. 00107 { 00108 Reset(); 00109 }
Implements CGenericEvent. Definition at line 78 of file Win32Event.cpp. 00079 { 00080 DWORD dwWaitResult; 00081 00082 //Wait for the mutex 00083 dwWaitResult=WaitForSingleObject(m_hEvent,ulMSTimeout); 00084 00085 //Check why did we quit 00086 return dwWaitResult==WAIT_TIMEOUT; 00087 }
The documentation for this class was generated from the following files: |