Lumiera  0.pre.03
»edit your freedom«
call-queue.hpp File Reference

Go to the source code of this file.

Description

A Queue for function invocations, allowing them to be dispatched on demand.

Typically this queue helper is used to forward lambdas into another thread, e.g. the UI thread for execution.

Todo:
simplistic braindead implementation with locking and heap based storage based on std::function; should use a lock-fee queue and should have an eye on the impact of managing argument storage
See also
stage::NotificationService usage example

Definition in file call-queue.hpp.

#include "lib/error.hpp"
#include "lib/sync.hpp"
#include "lib/iter-stack.hpp"
#include "lib/nocopy.hpp"
#include <functional>

Classes

class  CallQueue
 A threadsafe queue for bound void(void) functors. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.