OpalResourceSemaphore

Per-resource concurrency semaphore with blocking acquire and timed tryAcquire.

Declared in src/libs/libopal/opal/OpalResourceSemaphore.hpp
Inherits QObject
Group libopal

Detailed description

Guards access to a named resource with a configurable maximum concurrency count. Sessions acquire and release the semaphore by ID, and the tryAcquire() variant supports a timeout for non-blocking usage patterns.

See also OpalResourceManager.

Member function documentation

waitingCount

int OpalResourceSemaphore::waitingCount() const

The number of callers blocked in acquire() or tryAcquire() now, waiting for room.

In this section