diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-03-18 02:44:20 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-06 22:16:47 +0200 |
commit | ef01119ea9239c3e91c33dc3b51bb059eb621677 (patch) | |
tree | e2d13d56fbd0b59e959efc8b0f6bda8fca63b2ed /pthread/pt-internal.h | |
parent | cb62fb204d22daea8ec0367c7590f32116276aa7 (diff) |
2004-03-17 Marcus Brinkmann <marcus@gnu.org>
* libpthread: New directory, populated with Neal H. Walfields
pthread implementation.
Diffstat (limited to 'pthread/pt-internal.h')
-rw-r--r-- | pthread/pt-internal.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pthread/pt-internal.h b/pthread/pt-internal.h index a32345c..79ce19c 100644 --- a/pthread/pt-internal.h +++ b/pthread/pt-internal.h @@ -21,11 +21,12 @@ #define _PT_INTERNAL_H 1 #include <pthread.h> +#if 0 #include <stddef.h> #include <sched.h> #include <signal.h> #include <assert.h> - +#endif #include <bits/atomic.h> #include <pt-key.h> @@ -164,6 +165,7 @@ extern void __pthread_initialize (void); tid, we return the whole __pthread structure in *PTHREAD. */ extern int __pthread_create_internal (struct __pthread **pthread, const pthread_attr_t *attr, + void *provided_thread, void *(*start_routine)(void *), void *arg); @@ -203,6 +205,9 @@ extern int __pthread_thread_start (struct __pthread *thread); with THREAD. */ extern void __pthread_thread_halt (struct __pthread *thread); +/* Initialize provided kernel thread. */ +extern int __pthread_init_provided_thread (struct __pthread *thread, + void *p); /* Block THREAD. */ extern void __pthread_block (struct __pthread *thread); |