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&);
Callback::SafeFunctor connect(const Callback::SafeFunctor &f)
void block(const Callback::SafeFunctor &f)
Provides thread-safe signalling between a worker thread and the main program thread.
Definition: notifier.h:181
A thread-safe class to execute callbacks connected to it, with provision for automatic disconnection...
Definition: emitter.h:308
void disconnect(const Callback::SafeFunctor &f)
A wrapper for unix anonymous pipes.
Definition: pipes.h:150
bool in_main_thread()
Definition: notifier.h:217
A wrapper class for pthread mutexes.
Definition: mutex.h:117
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
Definition: application.h:44
void unblock(const Callback::SafeFunctor &f)
Functor class holding a Callback::CallbackArg object, with thread-safe reference count.
Definition: callback.h:726
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
A class used for tracking EmitterArg and SafeEmitterArg connections.
Definition: emitter.h:333
Notifier & operator=(const Notifier &)=delete
void operator()()
Definition: notifier.h:259