diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-12-17 22:26:26 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2008-12-17 22:26:26 +0100 |
commit | 87bfe7ed7bbe4dd4350f420cc9649809bef6d5a4 (patch) | |
tree | 0ace43ea190de328c01e15d6ab9c958c2e5cf9ea /libpthread | |
parent | 6d78a8b7e141b65c283cda0379e96f7c88f78f78 (diff) |
Rename futex functions.
libviengoos/
2008-12-17 Neal H. Walfield <neal@gnu.org>
* viengoos/futex.h (vg_futex_using): Rename from this...
(futex_using): ... to this. Update users. Use vg_futex_using,
not rm_futex_using.
(vg_futex): Rename from this...
(futex): ... to this. Update users.
(vg_futex_wait_using): Rename from this...
(futex_wait_using): ... to this. Update users.
(vg_futex_wake_using): Rename from this...
(futex_wake_using): ... to this. Update users.
libpthread/
2008-12-17 Neal H. Walfield <neal@gnu.org>
* sysdeps/viengoos/pt-block.c (__pthread_block): Use
futex_wait_using, not vg_futex_wait_using.
* sysdeps/viengoos/pt-wakeup.c (__pthread_wakeup): Use
futex_wake_using, not vg_futex_wake_using.
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/ChangeLog | 7 | ||||
-rw-r--r-- | libpthread/sysdeps/viengoos/pt-block.c | 2 | ||||
-rw-r--r-- | libpthread/sysdeps/viengoos/pt-thread-alloc.c | 2 | ||||
-rw-r--r-- | libpthread/sysdeps/viengoos/pt-wakeup.c | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/libpthread/ChangeLog b/libpthread/ChangeLog index ec19176..4badb21 100644 --- a/libpthread/ChangeLog +++ b/libpthread/ChangeLog @@ -1,5 +1,12 @@ 2008-12-17 Neal H. Walfield <neal@gnu.org> + * sysdeps/viengoos/pt-block.c (__pthread_block): Use + futex_wait_using, not vg_futex_wait_using. + * sysdeps/viengoos/pt-wakeup.c (__pthread_wakeup): Use + futex_wake_using, not vg_futex_wake_using. + +2008-12-17 Neal H. Walfield <neal@gnu.org> + * sysdeps/viengoos/ia32/pt-setup.c: Don't include <hurd/exceptions.h> or <viengoos/thread.h>. * sysdeps/viengoos/pt-startup.c (__pthread_startup): Don't include diff --git a/libpthread/sysdeps/viengoos/pt-block.c b/libpthread/sysdeps/viengoos/pt-block.c index e9a82ff..8e6a17f 100644 --- a/libpthread/sysdeps/viengoos/pt-block.c +++ b/libpthread/sysdeps/viengoos/pt-block.c @@ -34,7 +34,7 @@ __pthread_block (struct __pthread *thread) thread->lock_message_buffer = NULL; #endif - vg_futex_wait_using (mb, &thread->threadid, thread->threadid); + futex_wait_using (mb, &thread->threadid, thread->threadid); #ifndef NDEBUG thread->lock_message_buffer = mb; diff --git a/libpthread/sysdeps/viengoos/pt-thread-alloc.c b/libpthread/sysdeps/viengoos/pt-thread-alloc.c index 8b46e97..e47377c 100644 --- a/libpthread/sysdeps/viengoos/pt-thread-alloc.c +++ b/libpthread/sysdeps/viengoos/pt-thread-alloc.c @@ -78,7 +78,7 @@ __pthread_thread_alloc (struct __pthread *thread) err = vg_cap_copy (VG_ADDR_VOID, thread->lock_message_buffer->receiver, VG_ADDR (VG_MESSENGER_THREAD_SLOT, - VG_MESSENGER_SLOTS_LOG2), + VG_MESSENGER_SLOTS_LOG2), VG_ADDR_VOID, thread->object, 0, VG_CAP_PROPERTIES_DEFAULT); if (err) diff --git a/libpthread/sysdeps/viengoos/pt-wakeup.c b/libpthread/sysdeps/viengoos/pt-wakeup.c index 4bd51b4..6435689 100644 --- a/libpthread/sysdeps/viengoos/pt-wakeup.c +++ b/libpthread/sysdeps/viengoos/pt-wakeup.c @@ -40,7 +40,7 @@ __pthread_wakeup (struct __pthread *thread) long ret; do { - ret = vg_futex_wake_using (self->lock_message_buffer, + ret = futex_wake_using (self->lock_message_buffer, &thread->threadid, INT_MAX); assertx (ret <= 1, "tid: %x, ret: %d", thread->threadid, ret); |