From 771465fed0cf50ee2dd790723245fc091699c324 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 17 May 2004 01:38:02 +0000 Subject: re-indentation, bug fixes, hooks for pre-emptive async cancelation --- pthread_timechange_handler_np.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'pthread_timechange_handler_np.c') diff --git a/pthread_timechange_handler_np.c b/pthread_timechange_handler_np.c index eb7d281..f8b1d70 100644 --- a/pthread_timechange_handler_np.c +++ b/pthread_timechange_handler_np.c @@ -62,7 +62,7 @@ */ void * -pthread_timechange_handler_np(void * arg) +pthread_timechange_handler_np (void *arg) /* * ------------------------------------------------------ * DOCPUBLIC @@ -82,8 +82,8 @@ pthread_timechange_handler_np(void * arg) * * * RESULTS - * 0 successfully broadcast all CVs - * EAGAIN Not all CVs were broadcast + * 0 successfully broadcast all CVs + * EAGAIN Not all CVs were broadcast * * ------------------------------------------------------ */ @@ -91,18 +91,17 @@ pthread_timechange_handler_np(void * arg) int result = 0; pthread_cond_t cv; - EnterCriticalSection(&ptw32_cond_list_lock); + EnterCriticalSection (&ptw32_cond_list_lock); cv = ptw32_cond_list_head; while (cv != NULL && 0 == result) { - result = pthread_cond_broadcast(&cv); + result = pthread_cond_broadcast (&cv); cv = cv->next; } - LeaveCriticalSection(&ptw32_cond_list_lock); + LeaveCriticalSection (&ptw32_cond_list_lock); - return (void *)(result != 0 ? EAGAIN : 0); + return (void *) (result != 0 ? EAGAIN : 0); } - -- cgit v1.2.3