diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-03-19 04:18:42 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-06 22:32:34 +0200 |
commit | 4a6de6dc5632fd08588983a4f5bf6ac79d991deb (patch) | |
tree | 2fa6e969d42964208858b11df8a38ee5a0e94b56 /sysdeps/l4/pt-thread-halt.c | |
parent | 7e9f8f474cc8d44818a476818f19571e2f54a3d0 (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 'sysdeps/l4/pt-thread-halt.c')
-rw-r--r-- | sysdeps/l4/pt-thread-halt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/l4/pt-thread-halt.c b/sysdeps/l4/pt-thread-halt.c index ea97eea..991123c 100644 --- a/sysdeps/l4/pt-thread-halt.c +++ b/sysdeps/l4/pt-thread-halt.c @@ -1,5 +1,5 @@ -/* Deallocate the kernel thread resources. Mach version. - Copyright (C) 2000,02 Free Software Foundation, Inc. +/* Deallocate the kernel thread resources. L4version. + Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,6 +26,6 @@ void __pthread_thread_halt (struct __pthread *thread) { - /* FIXME reuse thread somehow */ l4_stop (thread->threadid); + pthread_pool_add_np (thread->threadid); } |