// Wait until a wakeup.
void wait_for_wakeup(const timespec *timeout_ts) { wait_for_activity(-1, 0, timeout_ts); }
- // Make wait_for_activity() return.
+ // Make wait_for_activity() return. Note that this is a relatively expensive
+ // operation.
void wakeup();
bool should_stop();