Lines Matching refs:_object
20 ::CEvent _object;
22 bool IsCreated() { return Event_IsCreated(&_object) != 0; } in IsCreated()
23 operator HANDLE() { return _object; } in HANDLE()
24 CBaseEvent() { Event_Construct(&_object); } in CBaseEvent()
26 WRes Close() { return Event_Close(&_object); } in Close()
30 _object = ::CreateEvent(sa, BoolToBOOL(manualReset), BoolToBOOL(initiallyOwn), name);
31 if (name == NULL && _object != 0)
37 _object = ::OpenEvent(desiredAccess, BoolToBOOL(inheritHandle), name); in Open()
38 if (_object != 0) in Open()
44 WRes Set() { return Event_Set(&_object); } in Set()
46 WRes Reset() { return Event_Reset(&_object); } in Reset()
47 WRes Lock() { return Event_Wait(&_object); } in Lock()
55 return ManualResetEvent_Create(&_object, initiallyOwn ? 1: 0);
61 return ManualResetEvent_CreateNotSignaled(&_object); in CreateIfNotCreated()
76 return AutoResetEvent_CreateNotSignaled(&_object); in Create()
82 return AutoResetEvent_CreateNotSignaled(&_object); in CreateIfNotCreated()
119 CMutex *_object; variable
121 CMutexLock(CMutex &object): _object(&object) { _object->Lock(); } in CMutexLock()
122 ~CMutexLock() { _object->Release(); } in ~CMutexLock()
128 ::CSemaphore _object;
130 CSemaphore() { Semaphore_Construct(&_object); } in CSemaphore()
132 WRes Close() { return Semaphore_Close(&_object); } in Close()
133 operator HANDLE() { return _object; } in HANDLE()
136 return Semaphore_Create(&_object, initiallyCount, maxCount); in Create()
138 WRes Release() { return Semaphore_Release1(&_object); } in Release()
139 WRes Release(UInt32 releaseCount) { return Semaphore_ReleaseN(&_object, releaseCount); } in Release()
140 WRes Lock() { return Semaphore_Wait(&_object); } in Lock()
145 ::CCriticalSection _object;
147 CCriticalSection() { CriticalSection_Init(&_object); } in CCriticalSection()
148 ~CCriticalSection() { CriticalSection_Delete(&_object); } in ~CCriticalSection()
149 void Enter() { CriticalSection_Enter(&_object); } in Enter()
150 void Leave() { CriticalSection_Leave(&_object); } in Leave()
155 CCriticalSection *_object; variable
156 void Unlock() { _object->Leave(); } in Unlock()
158 CCriticalSectionLock(CCriticalSection &object): _object(&object) {_object->Enter(); } in CCriticalSectionLock()