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

ReturnNameDescription
SyncQueue inlineConstructs a SyncQueue bound to the given libuv event loop.
voidclose virtual inlineCloses the underlying Synchronizer handle and stops loop wakeups.
voidpost virtual inlineWakes up the event loop so pending actions are dispatched via runSync().
Synchronizer &sync virtual inlineReturns a reference to the internal Synchronizer.

SyncQueue

inline

inline SyncQueue(uv::Loop * loop)

Constructs a SyncQueue bound to the given libuv event loop.

Parameters

  • loop Event 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

ReturnNameDescription
Synchronizer_sync

_sync

Synchronizer _sync