25 #ifndef CGU_NOTIFIER_H
26 #define CGU_NOTIFIER_H
36 #include <unordered_set>
37 #include <type_traits>
216 static bool initialised;
217 static pthread_t thread_id;
222 static std::unordered_set<Notifier*>* object_set_p;
226 static void read_pipe_cb(
bool&);
250 bool in_main_thread() noexcept {
return pthread_equal(thread_id, pthread_self());}
336 class =
typename std::enable_if<!std::is_convertible<typename std::remove_reference<F>::type,
339 return connect(Callback::lambda<>(std::forward<F>(f)));
367 class =
typename std::enable_if<!std::is_convertible<typename std::remove_reference<F>::type,
370 return connect(Callback::lambda<>(std::forward<F>(f)), r);