diff options
author | rpj <rpj> | 2004-05-17 01:38:02 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-05-17 01:38:02 +0000 |
commit | 771465fed0cf50ee2dd790723245fc091699c324 (patch) | |
tree | d8c18d095a33fe7c4564bd90c5f313bb9e4057dd /pthread_join.c | |
parent | 8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff) |
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'pthread_join.c')
-rw-r--r-- | pthread_join.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pthread_join.c b/pthread_join.c index 93be247..fa9c168 100644 --- a/pthread_join.c +++ b/pthread_join.c @@ -84,7 +84,7 @@ pthread_join (pthread_t thread, void **value_ptr) pthread_t self; /* This is the proper way to test for a valid thread ID */ - result = pthread_kill(thread, 0); + result = pthread_kill (thread, 0); if (0 != result) { return result; @@ -93,7 +93,7 @@ pthread_join (pthread_t thread, void **value_ptr) self = pthread_self (); if (NULL == self) { - return ENOENT; + return ENOENT; } if (0 != pthread_equal (self, thread)) @@ -113,7 +113,7 @@ pthread_join (pthread_t thread, void **value_ptr) * pthreadCancelableWait will not return if we * are canceled. */ - result = pthreadCancelableWait(thread->threadH); + result = pthreadCancelableWait (thread->threadH); if (result == 0) { @@ -144,7 +144,7 @@ pthread_join (pthread_t thread, void **value_ptr) { *value_ptr = thread->exitStatus; } - + /* * The result of making multiple simultaneous calls to * pthread_join() specifying the same target is undefined. |