Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
call-queue.hpp File Reference

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

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>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 

Classes

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