2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

convert back to UNIX text format

This commit is contained in:
Bob Halley 1998-10-23 06:02:07 +00:00
parent 0fc87fa2f3
commit 9fbefe0ace
6 changed files with 175 additions and 170 deletions

View File

@ -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);
@ -101,7 +102,7 @@ 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;

View File

@ -3,7 +3,7 @@
isc_result_t
isc_thread_create(isc_threadfunc_t start, isc_threadarg_t arg,
isc_thread_t *threadp)
isc_thread_t *threadp)
{
HANDLE h;
DWORD id;
@ -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);
}

View File

@ -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);
}