Class BoundedSemaphore
A bounded semaphore implementation.
This throws an Exception in release
() if it would increase the
value above the initial value.
Inherits from
-
Semaphore
(base class)
Properties
Name | Type | Description |
---|---|---|
locked
[get]
|
bool |
Returns true if semaphore can not be acquired immediately. |
Methods
Name | Description |
---|---|
acquire
|
Acquire a semaphore. |
release
|
Release a semaphore, incrementing the internal counter by one. When it was zero on entry and another coroutine is waiting for it to become larger than zero again, wake up that coroutine. |
Authors
Dragos Carp
Copyright
© 2015-2016 Dragos Carp
License
Boost Software License - Version 1.0