![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
RAII-style semaphore lock. More...
#include <semaphore_grant.h>
Public Member Functions | |
void | Acquire () noexcept |
void | Release () noexcept |
bool | TryAcquire () noexcept |
CountingSemaphoreGrant (const CountingSemaphoreGrant &)=delete | |
CountingSemaphoreGrant & | operator= (const CountingSemaphoreGrant &)=delete |
CountingSemaphoreGrant (CountingSemaphoreGrant &&other) noexcept | |
CountingSemaphoreGrant & | operator= (CountingSemaphoreGrant &&other) noexcept |
CountingSemaphoreGrant () noexcept | |
CountingSemaphoreGrant (std::counting_semaphore< LeastMaxValue > &sema, bool fTry=false) noexcept | |
~CountingSemaphoreGrant () | |
operator bool () const noexcept | |
Private Attributes | |
std::counting_semaphore< LeastMaxValue > * | sem |
bool | fHaveGrant |
RAII-style semaphore lock.
Definition at line 13 of file semaphore_grant.h.
|
delete |
|
inlinenoexcept |
Definition at line 51 of file semaphore_grant.h.
|
inlinenoexcept |
Definition at line 69 of file semaphore_grant.h.
|
inlineexplicitnoexcept |
Definition at line 71 of file semaphore_grant.h.
|
inline |
Definition at line 80 of file semaphore_grant.h.
|
inlinenoexcept |
Definition at line 20 of file semaphore_grant.h.
|
inlineexplicitnoexcept |
Definition at line 85 of file semaphore_grant.h.
|
delete |
|
inlinenoexcept |
Definition at line 59 of file semaphore_grant.h.
|
inlinenoexcept |
Definition at line 29 of file semaphore_grant.h.
|
inlinenoexcept |
Definition at line 38 of file semaphore_grant.h.
|
private |
Definition at line 17 of file semaphore_grant.h.
|
private |
Definition at line 16 of file semaphore_grant.h.