Per-resource concurrency semaphore with blocking acquire and timed tryAcquire. More...
| Header: | #include <OpalResourceSemaphore> |
| Since: | 1.0 |
| Inherits: | QObject |
| int | waitingCount() const |
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.
The number of callers blocked in acquire() or tryAcquire() now, waiting for room.