summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2007-08-06 16:32:43 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-06 22:41:54 +0200
commit426e7e7edf67380ec5afc9791a9541b0f8e2c452 (patch)
tree4c577ba28ae5b73dbdc664d8e5d408b47782d894
parent208f8d657fd3c8f6e2f5dfff0b0af68c6f099c49 (diff)
2007-08-06 Neal H. Walfield <neal@gnu.org>
* sysdeps/l4/bits/pthread-np.h (pthread_create_from_l4_tid_np): Don't require the GNU interface: use _L4_thread_id_t, not l4_thread_id_t. (pthread_pool_add_np): Likewise. (pthread_pool_get_np): Likewise. * sysdeps/l4/pt-create-np.c (pthread_create_from_l4_tid_np): Likewise. * sysdeps/l4/pt-pool-np.c (pool_list): Likewise. (pthread_pool_add_np): Likewise. (pthread_pool_get_np): Likewise.
-rw-r--r--ChangeLog12
-rw-r--r--sysdeps/l4/bits/pthread-np.h8
-rw-r--r--sysdeps/l4/pt-create-np.c4
-rw-r--r--sysdeps/l4/pt-pool-np.c10
4 files changed, 23 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 53af476..982acfa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2007-08-06 Neal H. Walfield <neal@gnu.org>
+
+ * sysdeps/l4/bits/pthread-np.h (pthread_create_from_l4_tid_np):
+ Don't require the GNU interface: use _L4_thread_id_t, not
+ l4_thread_id_t.
+ (pthread_pool_add_np): Likewise.
+ (pthread_pool_get_np): Likewise.
+ * sysdeps/l4/pt-create-np.c (pthread_create_from_l4_tid_np): Likewise.
+ * sysdeps/l4/pt-pool-np.c (pool_list): Likewise.
+ (pthread_pool_add_np): Likewise.
+ (pthread_pool_get_np): Likewise.
+
2005-02-08 Neal H. Walfield <neal@gnu.org>
* sysdeps/posix/pt-spin.c (__pthread_spin_lock): Make a weak alias
diff --git a/sysdeps/l4/bits/pthread-np.h b/sysdeps/l4/bits/pthread-np.h
index 7e80710..3a98cd3 100644
--- a/sysdeps/l4/bits/pthread-np.h
+++ b/sysdeps/l4/bits/pthread-np.h
@@ -1,5 +1,5 @@
/* Non-portable functions. L4 version.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2007 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
@@ -31,14 +31,14 @@
kernel thread. */
extern int pthread_create_from_l4_tid_np (pthread_t *thread,
const pthread_attr_t *attr,
- l4_thread_id_t tid,
+ _L4_thread_id_t tid,
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);
+extern 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);
+extern _L4_thread_id_t pthread_pool_get_np (void);
#endif /* bits/pthread-np.h */
diff --git a/sysdeps/l4/pt-create-np.c b/sysdeps/l4/pt-create-np.c
index 627d6d0..57c782c 100644
--- a/sysdeps/l4/pt-create-np.c
+++ b/sysdeps/l4/pt-create-np.c
@@ -1,5 +1,5 @@
/* Thread creation from provided L4 thread.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2007 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
@@ -30,7 +30,7 @@
int
pthread_create_from_l4_tid_np (pthread_t *thread,
const pthread_attr_t *attr,
- l4_thread_id_t tid,
+ _L4_thread_id_t tid,
void *(*start_routine)(void *), void *arg)
{
int err;
diff --git a/sysdeps/l4/pt-pool-np.c b/sysdeps/l4/pt-pool-np.c
index d006b4f..c72f2eb 100644
--- a/sysdeps/l4/pt-pool-np.c
+++ b/sysdeps/l4/pt-pool-np.c
@@ -1,5 +1,5 @@
/* Thread pool for L4 threads.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2007 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
@@ -22,11 +22,11 @@
static pthread_mutex_t pool_lock = PTHREAD_MUTEX_INITIALIZER;
-l4_thread_id_t pool_list = l4_nilthread;
+_L4_thread_id_t pool_list = l4_nilthread;
/* Add the thread TID to the pthread kernel thread pool. */
int
-pthread_pool_add_np (l4_thread_id_t tid)
+pthread_pool_add_np (_L4_thread_id_t tid)
{
__pthread_mutex_lock (&pool_lock);
/* FIXME: Do error checking. */
@@ -38,10 +38,10 @@ pthread_pool_add_np (l4_thread_id_t tid)
/* Get the first thread from the pool. */
-l4_thread_id_t
+_L4_thread_id_t
pthread_pool_get_np (void)
{
- l4_thread_id_t tid;
+ _L4_thread_id_t tid;
__pthread_mutex_lock (&pool_lock);
/* FIXME: Do error checking. */