File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 422422\end {slide }
423423
424424\begin {itemize }
425- \item In the program itself you probably will not need this function. You can
425+ \item In program itself you will probably not need this function. You can
426426just call the initialization function before you create the first thread.
427427\item It is undefined if \emph {once\_ control } is a local variable or does not
428428have an expected value.
429+ \item This is handy for lazy initialization, i.e. only after one of the threads
430+ call into APIs of the library (as opposed to when the library is being loaded),
431+ the library becomes initialized and the semantics of \texttt {pthread\_ once }
432+ will make sure this will happen only once.
429433\end {itemize }
430434
431435% %%%%
You can’t perform that action at this time.
0 commit comments