Thread-local semaphore implementation for tasks.
When the semaphore runs out of concurrent locks, it will suspend. This class is used in vibe.core.connectionpool to limit the number of concurrent connections.
Acquires a lock.
Try to acquire a lock.
Gives up an existing lock.
Number of concurrent locks still available
Maximum number of concurrent locks
private
See Implementation
Thread-local semaphore implementation for tasks.
When the semaphore runs out of concurrent locks, it will suspend. This class is used in vibe.core.connectionpool to limit the number of concurrent connections.