RELEASE_ASSERT(error == 0, "Failed to initialize libevent event_base: event_config_avoid_method");
void LibeventScheduler::onPrepareForCallback(evwatch*, const evwatch_prepare_cb_info*, void* arg) {
void LibeventScheduler::onCheckForCallback(evwatch*, const evwatch_check_cb_info*, void* arg) {
// Record poll timeout and prepare time for this iteration of the event loop. The timeout is the
// expected polling duration, whereas the actual polling duration will be the difference measured
// If we have a check time available from a previous iteration of the event loop (that is, all but
void LibeventScheduler::onCheckForStats(evwatch*, const evwatch_check_cb_info*, void* arg) {
// from above to compute the actual polling duration, and store it for the next iteration of the