From ea1a5bef1742628922ab2b17b6e610e33bd78981 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Jun 1996 22:52:42 +0000 Subject: first attempt at adding algorithm to select the thread which will receive a process-directed signal. --- c/src/exec/posix/src/pthread.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'c/src/exec/posix/src/pthread.c') diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c index a6d87bb463..957c2a717e 100644 --- a/c/src/exec/posix/src/pthread.c +++ b/c/src/exec/posix/src/pthread.c @@ -937,6 +937,15 @@ int pthread_create( api->schedpolicy = schedpolicy; api->schedparam = schedparam; + /* + * This insures we evaluate the process-wide signals pending when we + * first run. + * + * NOTE: Since the thread starts with all unblocked, this is necessary. + */ + + the_thread->do_post_task_switch_extension = TRUE; + /* * POSIX threads are allocated and started in one operation. */ -- cgit v1.2.3