mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
convert back to UNIX text format
This commit is contained in:
parent
0fc87fa2f3
commit
9fbefe0ace
@ -25,6 +25,7 @@ isc_condition_init(isc_condition_t *cond) {
|
||||
return (ISC_R_UNEXPECTED);
|
||||
}
|
||||
cond->events[BROADCAST] = h;
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
@ -38,6 +39,7 @@ isc_condition_signal(isc_condition_t *cond) {
|
||||
/* XXX */
|
||||
return (ISC_R_UNEXPECTED);
|
||||
}
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
@ -51,6 +53,7 @@ isc_condition_broadcast(isc_condition_t *cond) {
|
||||
/* XXX */
|
||||
return (ISC_R_UNEXPECTED);
|
||||
}
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
@ -61,20 +64,18 @@ isc_condition_destroy(isc_condition_t *cond) {
|
||||
|
||||
(void)CloseHandle(cond->events[SIGNAL]);
|
||||
(void)CloseHandle(cond->events[BROADCAST]);
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
static
|
||||
isc_result_t
|
||||
wait(isc_condition_t *cond, isc_mutex_t *mutex,
|
||||
DWORD milliseconds)
|
||||
{
|
||||
wait(isc_condition_t *cond, isc_mutex_t *mutex, DWORD milliseconds) {
|
||||
DWORD result;
|
||||
|
||||
cond->waiters++;
|
||||
LeaveCriticalSection(mutex);
|
||||
result = WaitForMultipleObjects(2, cond->events, FALSE,
|
||||
milliseconds);
|
||||
result = WaitForMultipleObjects(2, cond->events, FALSE, milliseconds);
|
||||
if (result == WAIT_FAILED) {
|
||||
/* XXX */
|
||||
return (ISC_R_UNEXPECTED);
|
||||
|
@ -32,10 +32,13 @@ isc_thread_join(isc_thread_t thread, isc_threadresult_t *rp) {
|
||||
/* XXX */
|
||||
return (ISC_R_UNEXPECTED);
|
||||
}
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
isc_result_t isc_thread_detach(isc_thread_t thread) {
|
||||
|
||||
/* XXX */
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ isc_time_get(isc_time_t t) {
|
||||
/* XXX No nanoseconds! */
|
||||
t->seconds = (unsigned long)time(NULL);
|
||||
t->nanoseconds = 0;
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user