Skip to contentSkip to conversation

2.5.14 futex update

PATCH New Rusty Russell 1 participant 1 message May 6, 2002 Futex

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.14 futex update

Linus, please apply.

This genericized interface makes futexes useable for pthreads.

Name: Futex Update
Author: Rusty Russell
Section: Misc
Status: Beta

D: This changes futex semantics to a simple "sleep if this address
D: equals this value" interface, which is more convenient for building
D: other primitives. It also adds a timeout value.
D:
D: Example library can be found at:
D: http://www.kernel.org/pub/linux/kernel/people/rusty/futex-2.0.tar.gz

include/linux/futex.h +2 -2
diff -urN -I \$.*\$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.13/include/linux/futex.h working-2.5.13-futexfix/include/linux/futex.h
@@ -2,7 +2,7 @@
 #define _LINUX_FUTEX_H
 
 /* Second argument to futex syscall */
-#define FUTEX_UP (0)
-#define FUTEX_DOWN (1)
+#define FUTEX_WAIT (0)
+#define FUTEX_WAKE (1)
 
 #endif
kernel/futex.c +67 -65

194 lines not on this page · raw message

--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.