We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b822653 commit bdf1685Copy full SHA for bdf1685
threads.tex
@@ -589,7 +589,14 @@
589
\label{PTHREAD_CLEANUP}
590
591
\begin{itemize}
592
-\item Cleanup functions are called as \texttt{routine(arg)}.
+\item The cleanup function is called as \texttt{routine(arg)}.
593
+\item The \funnm{pthread\_cleanup\_push} and \funnm{pthread\_cleanup\_pop}
594
+functions provide sort of a bracketing around code block that might need a
595
+cleanup. In fact, more often than not these functions are implemented as macros
596
+that open and close code blocks. This enforces this usage pattern
597
+(and causes trouble with \texttt{goto} statements).
598
+\item Run a C preprocessor on \example{pthreads/pthread-create.c} and see how
599
+this is done.
600
\end{itemize}
601
602
%%%%%
0 commit comments