From 15f1b0bc1f4feeca60ca1dda769928822d6c032a Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 3 Jun 2005 08:32:43 +0000 Subject: '' --- manual/pthread_once.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'manual') diff --git a/manual/pthread_once.html b/manual/pthread_once.html index ed91c20..856fb86 100644 --- a/manual/pthread_once.html +++ b/manual/pthread_once.html @@ -5,7 +5,7 @@ PTHREAD_ONCE(3) manual page - + @@ -39,13 +39,9 @@ nothing.

Cancellation

While pthread_once is not a cancellation point, -init_routine can be. The required effect on once_control -of a cancellation inside the init_routine is to leave it as if -pthread_once had not been called.

-

If the init_routine is cancelled and there are threads -waiting on the once_control then Pthreads-w32 wakes one of -them so that it can re-compete along with any newly arriving threads -in the re-running of init_routine.

+init_routine can be. The effect on once_control of a +cancellation inside the init_routine is to leave it as if +pthread_once had not been called by the cancelled thread.

Return Value

pthread_once returns 0 on success, or an error code on failure.

-- cgit v1.2.3