Futex update...
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
@@ -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.