#include <config.h>
#include <errno.h>
#include <isc/condition.h>
#include <isc/msgs.h>
#include <isc/strerror.h>
#include <isc/string.h>
#include <isc/time.h>
#include <isc/util.h>
Go to the source code of this file.
Functions | |
isc_result_t | isc_condition_waituntil (isc_condition_t *c, isc_mutex_t *m, isc_time_t *t) |
Definition in file condition.c.
isc_result_t isc_condition_waituntil | ( | isc_condition_t * | c, | |
isc_mutex_t * | m, | |||
isc_time_t * | t | |||
) |
POSIX defines a timespec's tv_nsec as long. isc_time_nanoseconds ensures its return value is < 1 billion, which will fit in a long.
Definition at line 34 of file condition.c.
References isc__strerror(), ISC_MSG_RETURNED, isc_msgcat_get(), ISC_MSGSET_GENERAL, ISC_R_RANGE, ISC_R_SUCCESS, ISC_R_TIMEDOUT, ISC_R_UNEXPECTED, ISC_STRERRORSIZE, isc_time_nanoseconds(), isc_time_secondsastimet(), REQUIRE, and UNEXPECTED_ERROR.