2.5.14 futex update
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
@@ -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.