aboutsummaryrefslogtreecommitdiff
path: root/man/man3
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-08 22:47:51 -0500
committerRuss Cox <rsc@swtch.com>2020-01-12 15:08:28 -0500
commit0158bceec78c7891a7ef672770bf42e65fd064dd (patch)
treed1fd52098775c9b25e67e1497fa3972143c1bd13 /man/man3
parente0c4896ed41faa71445d9e0b1751aba5157343c9 (diff)
downloadplan9port-0158bceec78c7891a7ef672770bf42e65fd064dd.tar.gz
plan9port-0158bceec78c7891a7ef672770bf42e65fd064dd.tar.bz2
plan9port-0158bceec78c7891a7ef672770bf42e65fd064dd.zip
libthread: run first thread in proc on system stack
For pthread systems that are fussy about which stack is used, this makes sure that threadmain runs on a system stack. If you only use proccreate (never threadcreate), all threads run on system stacks.
Diffstat (limited to 'man/man3')
-rw-r--r--man/man3/thread.38
1 files changed, 8 insertions, 0 deletions
diff --git a/man/man3/thread.3 b/man/man3/thread.3
index 0ebbddd0..9088ae2e 100644
--- a/man/man3/thread.3
+++ b/man/man3/thread.3
@@ -169,6 +169,14 @@ initialized to the desired value
.B mainstacksize
.B =
.BR 1024 ).
+When using the
+.I pthread
+library,
+.B mainstacksize
+is ignored, as is the stack size argument to
+.BR proccreate :
+the first thread in each proc
+runs on the native system stack.
.PP
.I Threadcreate
creates a new thread in the calling proc, returning a unique integer