Bitcoin Core
27.99.0
P2P Digital Currency
|
RAII-style semaphore lock. More...
#include <sync.h>
Public Member Functions | |
void | Acquire () noexcept |
void | Release () noexcept |
bool | TryAcquire () noexcept |
CSemaphoreGrant (const CSemaphoreGrant &)=delete | |
CSemaphoreGrant & | operator= (const CSemaphoreGrant &)=delete |
CSemaphoreGrant (CSemaphoreGrant &&other) noexcept | |
CSemaphoreGrant & | operator= (CSemaphoreGrant &&other) noexcept |
CSemaphoreGrant () noexcept | |
CSemaphoreGrant (CSemaphore &sema, bool fTry=false) noexcept | |
~CSemaphoreGrant () | |
operator bool () const noexcept | |
Private Attributes | |
CSemaphore * | sem |
bool | fHaveGrant |
|
delete |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |