Skip to content

Commit 2a368ae

Browse files
author
Vladimir Kotal
committed
fix wording about setting stack size
1 parent 55f36f0 commit 2a368ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

threads.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@
324324
increase.} It is usually anywhere from 64 kilobytes to a few megabytes. If you
325325
cross that limit, the program will quite probably crash. If you want a stack of
326326
a greater size than what is the system default, you have to use
327-
\emph{\texttt{attr}} when creating a thread.
327+
set the stack size via an attribute when creating a thread.
328+
The attribute is set using the \funnm{pthread\_attr\_setstacksize}() function.
328329
Example: \example{pthreads/pthread-stack-overflow.c}
329330
\item You can read more about thread specific data on page
330331
\pageref{THREAD_SPECIFIC_DATA}.

0 commit comments

Comments
 (0)