Lumiera  0.pre.03
»edit your freedom«
CallQueue Class Reference

#include "lib/call-queue.hpp"

Description

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 49 of file call-queue.hpp.

Public Types

using Operation = std::function< void(void)>
 

Public Member Functions

bool empty () const
 
CallQueuefeed (Operation &&op)
 
CallQueueinvoke ()
 
size_t size () const
 

Private Attributes

lib::IterQueue< Operation > queue_
 

Additional Inherited Members

- Static Public Member Functions inherited from Sync<>
static MonitorgetMonitor (Sync const *forThis)
 
- Private Member Functions inherited from NonCopyable
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
+ Inheritance diagram for CallQueue:
+ Collaboration diagram for CallQueue:

The documentation for this class was generated from the following file: