From cd3c708380761302fb5ffc6531d396f71b706b4f Mon Sep 17 00:00:00 2001
From: rpj
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.pthread_once returns 0 on success, or an error code on failure.
-- cgit v1.2.3