summaryrefslogtreecommitdiff
path: root/sysdeps/l4/pt-thread-alloc.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-03-18 02:44:20 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-06 22:16:47 +0200
commitef01119ea9239c3e91c33dc3b51bb059eb621677 (patch)
treee2d13d56fbd0b59e959efc8b0f6bda8fca63b2ed /sysdeps/l4/pt-thread-alloc.c
parentcb62fb204d22daea8ec0367c7590f32116276aa7 (diff)
2004-03-17 Marcus Brinkmann <marcus@gnu.org>
* libpthread: New directory, populated with Neal H. Walfields pthread implementation.
Diffstat (limited to 'sysdeps/l4/pt-thread-alloc.c')
-rw-r--r--sysdeps/l4/pt-thread-alloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/l4/pt-thread-alloc.c b/sysdeps/l4/pt-thread-alloc.c
index a9d5e21..00e99ff 100644
--- a/sysdeps/l4/pt-thread-alloc.c
+++ b/sysdeps/l4/pt-thread-alloc.c
@@ -1,5 +1,5 @@
-/* Start thread. L4 version.
- Copyright (C) 2002 Free Software Foundation, Inc.
+/* Allocate kernel thread. L4 version.
+ Copyright (C) 2003 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
@@ -23,9 +23,8 @@
#include <pt-internal.h>
-/* Start THREAD. Get the kernel thread scheduled and running. */
int
-__pthread_thread_start (struct __pthread *thread)
+__pthread_thread_alloc (struct __pthread *thread)
{
error_t err;
@@ -33,10 +32,11 @@ __pthread_thread_start (struct __pthread *thread)
if (__pthread_num_threads == 1)
{
assert (__pthread_total == 1);
- thread->thread_id = L4_Myself ();
+ thread->threadid = l4_myself ();
}
else
{
+#if 0
CORBA_Environment env;
env = idl4_default_environment;
@@ -45,8 +45,8 @@ __pthread_thread_start (struct __pthread *thread)
* (L4_Word_t *) &__system_pager,
(L4_Word_t *) &thread->threadid, &env);
if (err)
+#endif
return EAGAIN;
}
-
return 0;
}