diff options
author | marcus <marcus> | 2004-03-19 04:18:42 +0000 |
---|---|---|
committer | marcus <marcus> | 2004-03-19 04:18:42 +0000 |
commit | e911b638b2d997e731480a02d086f818c5e44c40 (patch) | |
tree | 7d40c5e5e80d265f59de351183fd91ae88502c58 /libpthread/sysdeps/l4/pt-thread-alloc.c | |
parent | 65d0c70dfae77c26146ffdda4de2f7106042cf76 (diff) |
2004-03-19 Marcus Brinkmann <marcus@gnu.org>
* sysdeps/l4/bits/pthread-np.h (pthread_pool_add_np,
pthread_pool_get_np): New prototypes.
* sysdeps/l4/pt-pool-np.c: New file.
* Makefile.am (libpthread_a_SOURCES): Add pt-pool-np.c.
* sysdeps/l4/pt-thread-alloc.c (__pthread_thread_alloc): Try to
allocate thread from pool.
* sysdeps/l4/pt-thread-halt.c (__pthread_thread_halt): Add thread
to pool after stopping it.
Diffstat (limited to 'libpthread/sysdeps/l4/pt-thread-alloc.c')
-rw-r--r-- | libpthread/sysdeps/l4/pt-thread-alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/sysdeps/l4/pt-thread-alloc.c b/libpthread/sysdeps/l4/pt-thread-alloc.c index 00e99ff..07784f5 100644 --- a/libpthread/sysdeps/l4/pt-thread-alloc.c +++ b/libpthread/sysdeps/l4/pt-thread-alloc.c @@ -36,6 +36,10 @@ __pthread_thread_alloc (struct __pthread *thread) } else { + thread->threadid = pthread_pool_get_np (); + if (thread->threadid != l4_nilthread) + return 0; + #if 0 CORBA_Environment env; |