Zth (libzth)
|
Fiber-aware semaphore. More...
#include <sync.h>
Public Member Functions | |
Semaphore (size_t init=0, cow_string const &name="Semaphore") | |
Semaphore (size_t init, cow_string &&name) | |
virtual | ~Semaphore () override=default |
void | acquire (size_t count=1) |
void | release (size_t count=1) noexcept |
size_t | value () const noexcept |
![]() | |
Synchronizer (cow_string const &name="Synchronizer") | |
Synchronizer (cow_string &&name) | |
virtual | ~Synchronizer () override |
![]() | |
RefCounted () noexcept | |
virtual | ~RefCounted ()=default |
void | used () noexcept |
void | unused () |
![]() | |
UniqueID (UniqueID const &)=delete | |
UniqueID (UniqueID &&u) noexcept | |
UniqueID (string const &name) | |
UniqueID (string &&name) | |
UniqueID (char const *name=nullptr) | |
UniqueID & | operator= (UniqueID const &)=delete |
UniqueID & | operator= (UniqueID &&u) noexcept |
virtual | ~UniqueID ()=default |
void const * | normptr () const noexcept |
uint64_t | id () const noexcept |
string const & | name () const noexcept |
void | setName (string const &name) |
void | setName (char const *name) |
void | setName (string &&name) |
virtual char const * | id_str () const override |
Additional Inherited Members | |
![]() | |
static uint64_t | getID () noexcept |
![]() | |
void | block () |
bool | unblock (Fiber &f) noexcept |
Unblock the specific fiber. More... | |
bool | unblockFirst () noexcept |
bool | unblockAll () noexcept |
bool | block (Timestamp const &timeout, Timestamp const &now=Timestamp::now()) |
Block, with timeout. More... | |
bool | block (TimeInterval const &timeout, Timestamp const &now=Timestamp::now()) |
Block, with timeout. More... | |
![]() | |
virtual | ~UniqueIDBase ()=default |
|
inlineexplicit |
|
inline |
|
overridevirtualdefault |
|
inlinenoexcept |