![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "stage/ctrl/ui-dispatcher.hpp"
Helper to dispatch code blocks into the UI event thread for execution.
Implementation of the actual dispatch is based on Glib::Dispatcher
Definition at line 102 of file ui-dispatcher.hpp.
Public Member Functions | |
| template<class FUN > | |
| UiDispatcher (FUN notification) | |
| void | event (Operation &&op) |
| move the given operation into our private dispatcher queue and then schedule dequeuing and invocation into the UI event thread. | |
Private Types | |
| using | Operation = lib::CallQueue::Operation |
Private Attributes | |
| lib::CallQueue | queue_ |
| Glib::Dispatcher | dispatcher_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inline |
Definition at line 112 of file ui-dispatcher.hpp.
References UiDispatcher::dispatcher_, CallQueue::invoke(), and UiDispatcher::queue_.
Here is the call graph for this function:
|
private |
Definition at line 108 of file ui-dispatcher.hpp.
|
inline |
move the given operation into our private dispatcher queue and then schedule dequeuing and invocation into the UI event thread.
| op | a completely closed lambda or functor |
Definition at line 139 of file ui-dispatcher.hpp.
References UiDispatcher::dispatcher_, CallQueue::feed(), and UiDispatcher::queue_.
Here is the call graph for this function:
|
private |
Definition at line 105 of file ui-dispatcher.hpp.
Referenced by UiDispatcher::UiDispatcher(), and UiDispatcher::event().
|
private |
Definition at line 106 of file ui-dispatcher.hpp.
Referenced by UiDispatcher::UiDispatcher(), and UiDispatcher::event().
Inheritance diagram for UiDispatcher:
Collaboration diagram for UiDispatcher: