Class LocalTaskSemaphore
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.
Inherits from
-
Object
(base class)
Constructors
Name | Description |
---|---|
this
|
Properties
Name | Type | Description |
---|---|---|
available
[get]
|
uint |
Number of concurrent locks still available
|
maxLocks
[get, set]
|
uint |
Maximum number of concurrent locks |
Methods
Name | Description |
---|---|
lock
|
Acquires a lock .
|
tryLock
|
Try to acquire a lock .
|
unlock
|
Gives up an existing lock .
|
Authors
Leonid Kramer, Sönke Ludwig, Manuel Frischknecht
Copyright
© 2012-2015 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.