From 0158bceec78c7891a7ef672770bf42e65fd064dd Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 8 Jan 2020 22:47:51 -0500 Subject: 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. --- src/libthread/threadimpl.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libthread/threadimpl.h') diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index a8d52704..437503c6 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -187,7 +187,6 @@ struct Proc }; #define proc() _threadproc() -#define setproc(p) _threadsetproc(p) extern Proc *_threadprocs; extern Lock _threadprocslock; -- cgit v1.2.3