From cd3c708380761302fb5ffc6531d396f71b706b4f Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 3 Jun 2005 08:36:26 +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