From b8be64c43da207a2f497c1c5b5720e4a2027348a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 30 Mar 2011 12:06:39 -0400 Subject: optimize timer creation and possibly protect against some minor races the major idea of this patch is not to depend on having the timer pointer delivered to the signal handler, and instead use the thread pointer to get the callback function address and argument. this way, the parent thread can make the timer_create syscall while the child thread is starting, and it should never have to block waiting for the barrier. --- 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 f2d0ae8c..7ab6243d 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -46,8 +46,6 @@ struct pthread { struct __timer { int timerid; - union sigval val; - void (*notify)(union sigval); pthread_t thread; }; -- cgit v1.2.1