• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • OpalResourceSemaphore
  • OpalResourceSemaphore Class

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

    Header: #include <OpalResourceSemaphore>
    Since: 1.0
    Inherits: QObject

    Public Functions

    int waitingCount() const

    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

    int OpalResourceSemaphore::waitingCount() const

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