CWin32Mutex Class Reference#include <Win32Mutex.h>
Inheritance diagram for CWin32Mutex:
![]()
Collaboration diagram for CWin32Mutex:
![]()
Detailed DescriptionDefinition at line 47 of file Win32Mutex.h. Constructor & Destructor Documentation
Definition at line 47 of file Win32Mutex.cpp. 00047 : CGenericMutex(pMutexName), 00048 m_hMutex(NULL) 00049 { 00050 //Try to create the mutex 00051 m_hMutex=CreateMutex(NULL, 00052 FALSE, 00053 pMutexName); 00054 00055 //Check if we are the owners 00056 if (pMutexName && 00057 GetLastError()!=ERROR_ALREADY_EXISTS) 00058 SetFirst(); 00059 }
Member Function Documentation
Implements CGenericMutex. Definition at line 68 of file Win32Mutex.cpp. 00069 { 00070 DWORD dwWaitResult; 00071 00072 //Wait for the mutex 00073 dwWaitResult=WaitForSingleObject(m_hMutex,ulMSTimeout); 00074 00075 //Check why did we quit 00076 return dwWaitResult==WAIT_TIMEOUT; 00077 }
Implements CWaitableObject. Definition at line 90 of file Win32Mutex.cpp. 00091 { 00092 Release(); 00093 }
The documentation for this class was generated from the following files: |