summaryrefslogtreecommitdiff
path: root/pthread_timechange_handler_np.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /pthread_timechange_handler_np.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'pthread_timechange_handler_np.c')
-rw-r--r--pthread_timechange_handler_np.c15
1 files changed, 7 insertions, 8 deletions
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);
}
-