Skip to contentSkip to conversation

Futex update...

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Futex update...

Linus, please apply.

This does not include the async interface (FUTEX_AWAIT) which we still don't agree on, but that's orthogonal.

Name: Futex Update
Author: Rusty Russell
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/current-dontdiff --minimal linux-2.5.7/include/linux/futex.h working-2.5.7-futex/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 +63 -64

190 lines not on this page · raw message

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