Fixes critical issue on OpenBSD.
if (timer_queue.is_queued(timer_id)) {
bool was_first = (&timer_queue.get_root()) == &timer_id;
timer_queue.remove(timer_id);
- if (was_first) {
+ if (was_first && provide_mono_timer) {
set_timer_from_queue();
}
}
#include <signal.h>
#include <setjmp.h>
+#include <sys/types.h>
// Support for the standard POSIX signal mechanisms. This can be used by backends that don't
// otherwise support receiving signals. It is not particularly nice (it involves using longjmp
return &sig_capture::siginfo_cap;
}
-} } // namespace dasynq :: signal_mech
+} } // namespace dprivate :: signal_mech
// signal_events template.
//
template <typename ...U> void allocate(handle_t & hnd, U&& ...u)
{
- return Base::allocate(hnd, u...);
+ Base::allocate(hnd, u...);
}
static void init_handle(handle_t &hndl)