Base module
ipc::SyncQueue
IPC synchronization queue is for passing templated actions between threads and the event loop we are synchronizing with.
SyncQueue
#include <icy/ipc.h>Inherits:
Action >
IPC synchronization queue is for passing templated actions between threads and the event loop we are synchronizing with.
Public Methods
| Return | Name | Description |
|---|---|---|
SyncQueue inline | Constructs a SyncQueue bound to the given libuv event loop. | |
void | close virtual inline | Closes the underlying Synchronizer handle and stops loop wakeups. |
void | post virtual inline | Wakes up the event loop so pending actions are dispatched via runSync(). |
Synchronizer & | sync virtual inline | Returns a reference to the internal Synchronizer. |
SyncQueue
inline
inline SyncQueue(uv::Loop * loop)Constructs a SyncQueue bound to the given libuv event loop.
Parameters
loopEvent loop to synchronize with (default: the process-wide default loop).
close
virtual inline
virtual inline void close()Closes the underlying Synchronizer handle and stops loop wakeups.
post
virtual inline
virtual inline void post()Wakes up the event loop so pending actions are dispatched via runSync().
sync
virtual inline
virtual inline Synchronizer & sync()Returns a reference to the internal Synchronizer.
Returns
Reference to the Synchronizer used for loop wakeup.
Protected Attributes
| Return | Name | Description |
|---|---|---|
Synchronizer | _sync |
_sync
Synchronizer _sync