diff options
| author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-03-02 09:14:21 +0000 |
|---|---|---|
| committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-03-02 09:14:21 +0000 |
| commit | c6ff3a1bf74d96278726113478b2c66884aab584 (patch) | |
| tree | 6fdc69d4aab26ec98c8573dbb7c07e9edbb0900a /lib/libpthread/man/pthread_once.3 | |
| parent | 55609eba05d32edc56e3f69740099d4d9b095cef (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/man/pthread_once.3')
| -rw-r--r-- | lib/libpthread/man/pthread_once.3 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libpthread/man/pthread_once.3 b/lib/libpthread/man/pthread_once.3 index 2dcea493cb9c..8cd894abbd19 100644 --- a/lib/libpthread/man/pthread_once.3 +++ b/lib/libpthread/man/pthread_once.3 @@ -51,7 +51,8 @@ by any thread in a process, with a given .Fa once_control , will call the .Fn init_routine -with no arguments. Subsequent calls to +with no arguments. +Subsequent calls to .Fn pthread_once with the same .Fa once_control @@ -61,14 +62,16 @@ On return from .Fn pthread_once , it is guaranteed that .Fn init_routine -has completed. The +has completed. +The .Fa once_control parameter is used to determine whether the associated initialization routine has been called. .Pp The function .Fn pthread_once -is not a cancellation point. However, if +is not a cancellation point. +However, if .Fn init_routine is a cancellation point and is cancelled, the effect on .Fa once_control is as if @@ -90,7 +93,8 @@ has automatic storage duration or is not initialized by .Sh RETURN VALUES If successful, the .Fn pthread_once -function will return zero. Otherwise an error number will be returned to +function will return zero. +Otherwise an error number will be returned to indicate the error. .Sh ERRORS None. |
