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