Futex update.
PATCH 1/1 Futex update.
Linus, please apply. On top of this, we can actually build those crazy pthreads primitives (as well as the simple locks of before).
Cheers,
Rusty.
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.