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_barrierattr_setpshared.c | |
parent | 8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff) |
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'pthread_barrierattr_setpshared.c')
-rw-r--r-- | pthread_barrierattr_setpshared.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/pthread_barrierattr_setpshared.c b/pthread_barrierattr_setpshared.c index c76f59c..90d7ef2 100644 --- a/pthread_barrierattr_setpshared.c +++ b/pthread_barrierattr_setpshared.c @@ -39,8 +39,7 @@ int -pthread_barrierattr_setpshared (pthread_barrierattr_t * attr, - int pshared) +pthread_barrierattr_setpshared (pthread_barrierattr_t * attr, int pshared) /* * ------------------------------------------------------ * DOCPUBLIC @@ -89,24 +88,24 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t * attr, (pshared == PTHREAD_PROCESS_PRIVATE))) { if (pshared == PTHREAD_PROCESS_SHARED) - { + { #if !defined( _POSIX_THREAD_PROCESS_SHARED ) - result = ENOSYS; - pshared = PTHREAD_PROCESS_PRIVATE; + result = ENOSYS; + pshared = PTHREAD_PROCESS_PRIVATE; #else - result = 0; + result = 0; #endif /* _POSIX_THREAD_PROCESS_SHARED */ - } + } else - { - result = 0; - } + { + result = 0; + } (*attr)->pshared = pshared; } @@ -117,4 +116,4 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t * attr, return (result); -} /* pthread_barrierattr_setpshared */ +} /* pthread_barrierattr_setpshared */ |