Searched refs:m_Semaphore (Results 1 – 2 of 2) sorted by relevance
239 LightSemaphore* m_Semaphore;242 …: m_Semaphore(wait ? (semaphore.Acquire(), &semaphore) : (semaphore.TryAcquire() ? &semaphore : 0)…243 bool Aquired() const { return m_Semaphore != 0; } in Aquired()244 void Detach() { this->m_Semaphore = 0; } in Detach()245 ~ScopedAcquire() { if (m_Semaphore) { m_Semaphore->Release(); } } in ~ScopedAcquire()
34 Semaphore m_Semaphore; variable57 this->m_Semaphore.Initialize(maxCount, maxCount);67 m_Semaphore.Finalize(); in Finalize()78 if (m_Semaphore.TryAcquire()) in TryAllocate()98 m_Semaphore.Acquire(); in Allocate()112 m_Semaphore.Release(); in Free()