Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CSemaphore Class Reference
#include <sync.h>
Public Member Functions | |
CSemaphore (int init) | |
void | wait () |
bool | try_wait () |
void | post () |
Private Attributes | |
std::condition_variable | condition |
std::mutex | mutex |
int | value |
Detailed Description
Constructor & Destructor Documentation
◆ CSemaphore()
Member Function Documentation
◆ post()
|
inline |
◆ try_wait()
|
inline |
Definition at line 211 of file sync.h.
Referenced by CSemaphoreGrant::TryAcquire().
◆ wait()
|
inline |
Member Data Documentation
◆ condition
|
private |
◆ mutex
|
private |
Definition at line 198 of file sync.h.
Referenced by post(), try_wait(), and wait().
◆ value
|
private |
Definition at line 199 of file sync.h.
Referenced by post(), try_wait(), and wait().
The documentation for this class was generated from the following file:
- src/sync.h