summaryrefslogtreecommitdiffstats
path: root/libc/arch-sh
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2010-03-11 14:47:47 -0800
committerFabrice Di Meglio <fdimeglio@google.com>2010-03-11 14:47:47 -0800
commit8641833b62e3b319796dc80ea16eb1592c05edf6 (patch)
treef0b9b778513da0e049ce1b4c706ae5000848d7c1 /libc/arch-sh
parentba9c6f0989ae94778ba2b9f597adc827c9dc81e8 (diff)
downloadbionic-8641833b62e3b319796dc80ea16eb1592c05edf6.zip
bionic-8641833b62e3b319796dc80ea16eb1592c05edf6.tar.gz
bionic-8641833b62e3b319796dc80ea16eb1592c05edf6.tar.bz2
Revert "bionic: pthread: use private futexes by default for mutexes and condvars"
This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
Diffstat (limited to 'libc/arch-sh')
-rw-r--r--libc/arch-sh/bionic/atomics_sh.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libc/arch-sh/bionic/atomics_sh.c b/libc/arch-sh/bionic/atomics_sh.c
index 5171363..16966f7 100644
--- a/libc/arch-sh/bionic/atomics_sh.c
+++ b/libc/arch-sh/bionic/atomics_sh.c
@@ -98,21 +98,3 @@ int __futex_wake(volatile void *ftx, int count)
{
return futex(ftx, FUTEX_WAKE, count, NULL, NULL, 0);
}
-
-/* Private futexes belong to a single address space and cannot be
- * shared among processes. They are however significantly faster to
- * operate than standard futexes.
- */
-#define FUTEX_PRIVATE_FLAG 128
-#define FUTEX_WAIT_PRIVATE (FUTEX_WAIT|FUTEX_PRIVATE_FLAG)
-#define FUTEX_WAKE_PRIVATE (FUTEX_WAKE|FUTEX_PRIVATE_FLAG)
-
-int __futex_wait_private(volatile void *ftx, int val, const struct timespec *timeout)
-{
- return futex(ftx, FUTEX_WAIT_PRIVATE, val, (void *)timeout, NULL, 0);
-}
-
-int __futex_wake_private(volatile void *ftx, int count)
-{
- return futex(ftx, FUTEX_WAKE_PRIVATE, count, NULL, NULL, 0);
-}