From b8742f32602add243ee2ce74d804015463726899 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 9 May 2018 00:14:13 -0400 Subject: improve design of thread-start with explicit scheduling attributes eliminate the awkward startlock mechanism and corresponding fields of the pthread structure that were only used at startup. instead of having pthread_create perform the scheduling operations and having the new thread wait for them to be completed, start the new thread with a wrapper start function that performs its own scheduling, sending the result code back via a futex. this way the new thread can use storage from the calling thread's stack rather than permanent fields in the pthread structure. --- src/internal/pthread_impl.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/internal/pthread_impl.h') diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index fc2def63..69352ef2 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -47,8 +47,6 @@ struct pthread { volatile int timer_id; locale_t locale; volatile int killlock[1]; - volatile int startlock[1]; - unsigned long sigmask[_NSIG/8/sizeof(long)]; char *dlerror_buf; void *stdio_locks; -- cgit v1.2.1