diff options
author | davidxu <davidxu@FreeBSD.org> | 2012-02-22 03:22:49 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2012-02-22 03:22:49 +0000 |
commit | d177303078ee8f6069218009d6c3c2b6d9d9ca97 (patch) | |
tree | 243668cadaadb4cb39ffc1650b45f200ef00ac6c /sys/sys | |
parent | 1ec5baaef2e3798db4f06efbac2ca27d4d5506a5 (diff) | |
download | FreeBSD-src-d177303078ee8f6069218009d6c3c2b6d9d9ca97.zip FreeBSD-src-d177303078ee8f6069218009d6c3c2b6d9d9ca97.tar.gz |
Use unused fourth argument of umtx_op to pass flags to kernel for operation
UMTX_OP_WAIT. Upper 16bits is enough to hold a clock id, and lower
16bits is used to pass flags. The change saves a clock_gettime() syscall
from libthr.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/umtx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/umtx.h b/sys/sys/umtx.h index 8d8950d..cfdb565 100644 --- a/sys/sys/umtx.h +++ b/sys/sys/umtx.h @@ -87,6 +87,8 @@ #define CVWAIT_ABSTIME 0x02 #define CVWAIT_CLOCKID 0x04 +#define UMTX_WAIT_ABSTIME 0x01 + #define UMTX_CHECK_UNPARKING CVWAIT_CHECK_UNPARKING #ifndef _KERNEL |