mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Fixed prototype for isc_condition_waituntil.
Fixed calls to isc_time_now and isc_time_millidiff.
This commit is contained in:
parent
d5069ac954
commit
05d763d642
@ -127,15 +127,15 @@ isc_condition_wait(isc_condition_t *cond, isc_mutex_t *mutex) {
|
||||
|
||||
isc_result_t
|
||||
isc_condition_waituntil(isc_condition_t *cond, isc_mutex_t *mutex,
|
||||
isc_time_t t)
|
||||
isc_time_t *t)
|
||||
{
|
||||
DWORD milliseconds;
|
||||
struct isc_time now;
|
||||
|
||||
if (isc_time_get(&now) != ISC_R_SUCCESS) {
|
||||
if (isc_time_now(&now) != ISC_R_SUCCESS) {
|
||||
/* XXX */
|
||||
return (ISC_R_UNEXPECTED);
|
||||
}
|
||||
milliseconds = (DWORD)isc_time_millidiff(t, now);
|
||||
milliseconds = (DWORD)isc_time_millidiff(t, &now);
|
||||
return (wait(cond, mutex, milliseconds));
|
||||
}
|
||||
|
@ -36,6 +36,6 @@ isc_result_t isc_condition_signal(isc_condition_t *);
|
||||
isc_result_t isc_condition_broadcast(isc_condition_t *);
|
||||
isc_result_t isc_condition_destroy(isc_condition_t *);
|
||||
isc_result_t isc_condition_waituntil(isc_condition_t *, isc_mutex_t *,
|
||||
isc_time_t);
|
||||
isc_time_t *);
|
||||
|
||||
#endif /* ISC_CONDITION_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user