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. 00052 : CGenericEvent(bInitialState, 00053 bManualReset, 00054 pEventName), 00055 m_hEvent(NULL) 00056 { 00057 //Create the event 00058 m_hEvent=CreateEvent((LPSECURITY_ATTRIBUTES)lpSecurity, 00059 bManualReset, 00060 bInitialState, 00061 pEventName); 00062 00063 //Do we have the event 00064 if (!m_hEvent) 00065 throw std::string("Failed to create event!"); 00066 00067 //Check if we are the owners 00068 if (pEventName && 00069 GetLastError()!=ERROR_ALREADY_EXISTS) 00070 SetFirst(); 00071 }
Definition at line 73 of file Win32Event.cpp. 00076 : CGenericEvent(bInitialState, 00077 bManualReset, 00078 pEventName), 00079 m_hEvent(NULL) 00080 { 00081 }
Member Function Documentation
Implements CWaitableObject. Definition at line 129 of file Win32Event.cpp. 00130 { 00131 Reset(); 00132 }
Implements CGenericEvent. Definition at line 100 of file Win32Event.cpp. 00101 { 00102 DWORD dwWaitResult; 00103 00104 //Wait for the mutex 00105 dwWaitResult=WaitForSingleObject(m_hEvent, 00106 ulMSTimeout); 00107 00108 //Check why did we quit 00109 return dwWaitResult==WAIT_TIMEOUT; 00110 }
The documentation for this class was generated from the following files: |