Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/call-queue.hpp"
A threadsafe queue for bound void(void)
functors.
Typically used to dispatch function invocations together with their concrete parameters into another thread for invocation.
Definition at line 58 of file call-queue.hpp.
Public Types | |
using | Operation = std::function< void(void)> |
Public Member Functions | |
bool | empty () const |
CallQueue & | feed (Operation &&op) |
CallQueue & | invoke () |
size_t | size () const |
Private Attributes | |
lib::IterQueue< Operation > | queue_ |
Additional Inherited Members | |
Static Public Member Functions inherited from Sync<> | |
static Monitor & | getMonitor (Sync const *forThis) |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |