]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add user-level semaphore synchronous type, this change allows multiple
authordavidxu <davidxu@FreeBSD.org>
Mon, 4 Jan 2010 05:27:49 +0000 (05:27 +0000)
committerdavidxu <davidxu@FreeBSD.org>
Mon, 4 Jan 2010 05:27:49 +0000 (05:27 +0000)
commitbbf7e232eab024b4eed6bdf9d12e8ec7ef7221b2
tree2c11cb1412754f9ba89ec026a549d0b5021ce605
parent0a8208022f3b188cc1acc527d07c6576f87ad047
Add user-level semaphore synchronous type, this change allows multiple
processes to share semaphore by using shared memory area, in simplest case,
only one atomic operation is needed in userland, waiter flag is maintained by
kernel and userland only checks the flag, if the flag is set, user code enters
kernel and does a wakeup() call.
Move type definitions into file _umtx.h to minimize compiling time.
Also type names need to be prefixed with underline character, this would reduce
name conflict (still in progress).
sys/kern/kern_umtx.c
sys/sys/_umtx.h [new file with mode: 0644]
sys/sys/umtx.h