summaryrefslogtreecommitdiff
path: root/sysdeps/l4/bits
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-03-19 04:18:42 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-06 22:32:34 +0200
commit0d723d7f3a762f106de2f95af2fdaaa650359d80 (patch)
treed1b0d7355013332e6708a940379c9fedc5177c1b /sysdeps/l4/bits
parent0ba014f072e0d19c16d0584672ec9f65cc451a54 (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/bits')
-rw-r--r--sysdeps/l4/bits/pthread-np.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/l4/bits/pthread-np.h b/sysdeps/l4/bits/pthread-np.h
index b487e6dc..7e807107 100644
--- a/sysdeps/l4/bits/pthread-np.h
+++ b/sysdeps/l4/bits/pthread-np.h
@@ -35,4 +35,10 @@ extern int pthread_create_from_l4_tid_np (pthread_t *thread,
void *(*start_routine)(void *),
void *arg);
+/* Add the thread TID to the internal kernel thread pool. */
+int pthread_pool_add_np (l4_thread_id_t tid);
+
+/* Get the first thread from the pool. */
+l4_thread_id_t pthread_pool_get_np (void);
+
#endif /* bits/pthread-np.h */