Lines Matching +full:create +full:- +full:release
32 …WRes Create(bool manualReset, bool initiallyOwn, LPCTSTR name = NULL, LPSECURITY_ATTRIBUTES sa = N…
57 WRes Create(bool initiallyOwn = false)
70 return CBaseEvent::Create(true, initiallyOwn, name); in CreateWithName()
78 WRes Create() in Create() function
104 WRes Create(bool initiallyOwn, LPCTSTR name = NULL, LPSECURITY_ATTRIBUTES sa = NULL)
120 WRes Release()
130 CMutexLock(CMutex &object): _object(&object) { _object->Lock(); }
131 ~CMutexLock() { _object->Release(); }
152 WRes Create(UInt32 initCount, UInt32 maxCount) in Create() function
160 WRes Release() { return Semaphore_Release1(&_object); } in Release() function
161 WRes Release(UInt32 releaseCount) { return Semaphore_ReleaseN(&_object, releaseCount); } in Release() function
178 void Unlock() { _object->Leave(); } in Unlock()
180 CCriticalSectionLock(CCriticalSection &object): _object(&object) {_object->Enter(); } in CCriticalSectionLock()
228 WRes Create() in Create() function
239 #pragma GCC diagnostic ignored "-Wthread-safety-negative" in Enter()
240 #pragma GCC diagnostic ignored "-Wthread-safety-analysis" in Enter()
290 // bool IsCreated() { return (this->_sync != NULL); }
294 WRes Close() { this->_sync = NULL; return 0; } in Close()
296 WRes Create( in Create() function
300 this->_sync = sync; in Create()
301 this->_manual_reset = manualReset; in Create()
302 this->_state = initiallyOwn; in Create()
308 RINOK(this->_sync->Enter()) in Set()
309 this->_state = true; in Set()
310 return this->_sync->LeaveAndSignal(); in Set()
315 RINOK(this->_sync->Enter()) in Reset()
316 this->_state = false; in Reset()
317 return this->_sync->Leave(); in Reset()
327 …WRes Create(CSynchro *sync, bool initiallyOwn = false) { return CBaseEvent_WFMO::Create(sync, true…
334 WRes Create(CSynchro *sync) { return CBaseEvent_WFMO::Create(sync, false, false); } in Create() function
337 return Create(sync); in CreateIfNotCreated_Reset()
350 WRes Close() { this->_sync = NULL; return 0; } in Close()
352 WRes Create(CSynchro *sync, UInt32 initCount, UInt32 maxCount) in Create() function
356 this->_sync = sync; in Create()
357 this->_count = initCount; in Create()
358 this->_maxCount = maxCount; in Create()
362 WRes Release(UInt32 releaseCount = 1)
367 RINOK(this->_sync->Enter())
368 UInt32 newCount = this->_count + releaseCount;
369 if (newCount > this->_maxCount)
371 RINOK(this->_sync->Leave())
374 this->_count = newCount;
376 return this->_sync->LeaveAndSignal();