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