summaryrefslogtreecommitdiff
path: root/pthread_once.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_once.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'pthread_once.c')
-rw-r--r--pthread_once.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/pthread_once.c b/pthread_once.c
index b698d68..d37ee3d 100644
--- a/pthread_once.c
+++ b/pthread_once.c
@@ -39,38 +39,35 @@
int
-pthread_once (
- pthread_once_t * once_control,
- void (*init_routine) (void)
-)
+pthread_once (pthread_once_t * once_control, void (*init_routine) (void))
/*
* ------------------------------------------------------
* DOCPUBLIC
- * If any thread in a process with a once_control parameter
- * makes a call to pthread_once(), the first call will summon
- * the init_routine(), but subsequent calls will not. The
- * once_control parameter determines whether the associated
- * initialization routine has been called. The init_routine()
- * is complete upon return of pthread_once().
- * This function guarantees that one and only one thread
- * executes the initialization routine, init_routine when
- * access is controlled by the pthread_once_t control
- * key.
+ * If any thread in a process with a once_control parameter
+ * makes a call to pthread_once(), the first call will summon
+ * the init_routine(), but subsequent calls will not. The
+ * once_control parameter determines whether the associated
+ * initialization routine has been called. The init_routine()
+ * is complete upon return of pthread_once().
+ * This function guarantees that one and only one thread
+ * executes the initialization routine, init_routine when
+ * access is controlled by the pthread_once_t control
+ * key.
*
* PARAMETERS
- * once_control
- * pointer to an instance of pthread_once_t
+ * once_control
+ * pointer to an instance of pthread_once_t
*
- * init_routine
- * pointer to an initialization routine
+ * init_routine
+ * pointer to an initialization routine
*
*
* DESCRIPTION
- * See above.
+ * See above.
*
* RESULTS
- * 0 success,
- * EINVAL once_control or init_routine is NULL
+ * 0 success,
+ * EINVAL once_control or init_routine is NULL
*
* ------------------------------------------------------
*/