cvs commit: src/sys/sys umtx.h src/sys/kern kern_umtx.c
David Xu
davidxu at FreeBSD.org
Wed Dec 29 18:56:18 PST 2004
davidxu 2004-12-30 02:56:17 UTC
FreeBSD src repository
Modified files:
sys/sys umtx.h
sys/kern kern_umtx.c
Log:
Make umtx_wait and umtx_wake more like linux futex does, it is
more general than previous. It also lets me implement cancelable point
in thread library. Also in theory, umtx_lock and umtx_unlock can
be implemented by using umtx_wait and umtx_wake, all atomic operations
can be done in userland without kernel's casuptr() function.
Revision Changes Path
1.25 +9 -41 src/sys/kern/kern_umtx.c
1.9 +7 -9 src/sys/sys/umtx.h
More information about the cvs-all
mailing list