Go to the documentation of this file.
25 #ifndef CGU_NOTIFIER_H
26 #define CGU_NOTIFIER_H
36 #include <unordered_set>
183 static bool initialised;
184 static pthread_t thread_id;
189 static std::unordered_set<Notifier*>* object_set_p;
193 static void read_pipe_cb(
bool&);
Notifier & operator=(const Notifier &)=delete
Definition: application.h:44
void block(const Callback::SafeFunctor &f)
bool in_main_thread()
Definition: notifier.h:217
Provides thread-safe signalling between a worker thread and the main program thread.
Definition: notifier.h:181
void disconnect(const Callback::SafeFunctor &f)
void unblock(const Callback::SafeFunctor &f)
A thread-safe class to execute callbacks connected to it, with provision for automatic disconnection.
Definition: emitter.h:308
Functor class holding a Callback::CallbackArg object, with thread-safe reference count.
Definition: callback.h:726
void operator()()
Definition: notifier.h:259
A wrapper for unix anonymous pipes.
Definition: pipes.h:150
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
Callback::SafeFunctor connect(const Callback::SafeFunctor &f)
A class used for tracking EmitterArg and SafeEmitterArg connections.
Definition: emitter.h:333
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
A wrapper class for pthread mutexes.
Definition: mutex.h:117