]> git.saurik.com Git - apple/libc.git/blobdiff - pthreads/pthread_cleanup_pop.3
Libc-825.40.1.tar.gz
[apple/libc.git] / pthreads / pthread_cleanup_pop.3
index a965922ccd4ad83efb35006bdd84d7deca54bee0..f6d0401e2d50948160d70f3e93f9cbb785a1c132 100644 (file)
 .Sh DESCRIPTION
 The
 .Fn pthread_cleanup_pop
-function pops the top cleanup routine off of the current threads cleanup
-routine stack, and, if
+function pops the top cleanup routine off
+of the current thread's cleanup routine stack and, if
 .Fa execute
 is non-zero, it will execute the function.
-If there is no cleanup routine
-then
+If there is no cleanup routine,
 .Fn pthread_cleanup_pop
 does nothing.
+.Pp
+.Fn pthread_cleanup_pop
+must be paired with a corresponding
+.Xr pthread_cleanup_push 3
+in the same lexical scope.
 .Sh RETURN VALUES
 .Fn pthread_cleanup_pop
 does not return any value.