#include <genesis/utils/threading/lightweight_semaphore.hpp>
Definition at line 323 of file lightweight_semaphore.hpp.
Public Member Functions | |
| LightweightSemaphore (ssize_t initialCount=0, int maxSpins=10000) | |
| std::size_t | availableApprox () const |
| void | signal (ssize_t count=1) |
| bool | tryWait () |
| ssize_t | tryWaitMany (ssize_t max) |
| bool | wait () |
| bool | wait (std::int64_t timeout_usecs) |
| ssize_t | waitMany (ssize_t max) |
| ssize_t | waitMany (ssize_t max, std::int64_t timeout_usecs) |
Public Types | |
| typedef std::make_signed< std::size_t >::type | ssize_t |
|
inline |
Definition at line 397 of file lightweight_semaphore.hpp.
|
inline |
Definition at line 465 of file lightweight_semaphore.hpp.
|
inline |
Definition at line 455 of file lightweight_semaphore.hpp.
|
inline |
Definition at line 405 of file lightweight_semaphore.hpp.
Definition at line 426 of file lightweight_semaphore.hpp.
|
inline |
Definition at line 415 of file lightweight_semaphore.hpp.
|
inline |
Definition at line 420 of file lightweight_semaphore.hpp.
Definition at line 448 of file lightweight_semaphore.hpp.
Definition at line 439 of file lightweight_semaphore.hpp.
| typedef std::make_signed<std::size_t>::type ssize_t |
Definition at line 325 of file lightweight_semaphore.hpp.