#include <sync.h>
|
| | SynchronizerBase (cow_string const &name="Synchronizer") |
| |
| | SynchronizerBase (cow_string &&name) |
| |
| virtual queue_type & | queue (size_t q=0)=0 |
| |
| queue_type::iterator | enqueue (Listable &item, size_t q=0) noexcept |
| |
| void | block (size_t q=0) |
| |
| bool | unblock (Fiber &f, size_t q=0, bool prio=false) noexcept |
| | Unblock the specific fiber.
|
| |
| Listable * | unblockFirst (size_t q=0, bool prio=false) noexcept |
| |
| bool | unblockAll (size_t q=0, bool prio=false) noexcept |
| |
| virtual void | wakeup (Listable &item, queue_type::user_type user, bool prio, size_t q) noexcept |
| |
| bool | blockUntil (Timestamp const &timeout, Timestamp const &now=Timestamp::now(), size_t q=0) |
| | Block, with timeout.
|
| |
| bool | blockFor (TimeInterval const &timeout, Timestamp const &now=Timestamp::now(), size_t q=0) |
| | Block, with timeout.
|
| |
| virtual void | cleanup () noexcept |
| |
| virtual uint64_t | id_ () const noexcept final |
| |
| | NamedUniqueID (char const *name=nullptr) |
| |
| | NamedUniqueID (string const &name) |
| |
| | NamedUniqueID (string &&name) |
| |
| virtual | ~UniqueIDBase () noexcept=default |
| |
Definition at line 272 of file sync.h.
◆ queue_type
◆ SynchronizerBase() [1/2]
| zth::SynchronizerBase::SynchronizerBase |
( |
cow_string const & |
name = "Synchronizer" | ) |
|
|
inlineexplicitprotected |
◆ SynchronizerBase() [2/2]
| zth::SynchronizerBase::SynchronizerBase |
( |
cow_string && |
name | ) |
|
|
inlineexplicitprotected |
◆ ~SynchronizerBase()
| virtual zth::SynchronizerBase::~SynchronizerBase |
( |
| ) |
|
|
inlineoverridevirtualnoexcept |
◆ block()
| void zth::SynchronizerBase::block |
( |
size_t |
q = 0 | ) |
|
|
inlineprotected |
◆ blockFor()
Block, with timeout.
- Returns
true if unblocked by request, false when unblocked by timeout.
Definition at line 429 of file sync.h.
◆ blockUntil()
Block, with timeout.
- Returns
true if unblocked by request, false when unblocked by timeout.
Definition at line 415 of file sync.h.
◆ enqueue()
◆ queue()
| virtual queue_type & zth::SynchronizerBase::queue |
( |
size_t |
q = 0 | ) |
|
|
protectedpure virtual |
◆ unblock()
| bool zth::SynchronizerBase::unblock |
( |
Fiber & |
f, |
|
|
size_t |
q = 0, |
|
|
bool |
prio = false |
|
) |
| |
|
inlineprotectednoexcept |
Unblock the specific fiber.
- Returns
true if unblocked, false when not queued by this Synchronizer.
Definition at line 319 of file sync.h.
◆ unblockAll()
| bool zth::SynchronizerBase::unblockAll |
( |
size_t |
q = 0, |
|
|
bool |
prio = false |
|
) |
| |
|
inlineprotectednoexcept |
◆ unblockFirst()
| Listable * zth::SynchronizerBase::unblockFirst |
( |
size_t |
q = 0, |
|
|
bool |
prio = false |
|
) |
| |
|
inlineprotectednoexcept |
◆ wakeup()
|
|
inlineprotectedvirtualnoexcept |
◆ AlarmClock
The documentation for this class was generated from the following file: