Date: Mon, 4 Jan 2010 05:27:49 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_umtx.c src/sys/sys _umtx.h umtx.h Message-ID: <201001040528.o045SYOC012402@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidxu 2010-01-04 05:27:49 UTC FreeBSD src repository Modified files: sys/kern kern_umtx.c sys/sys umtx.h Added files: sys/sys _umtx.h Log: SVN rev 201472 on 2010-01-04 05:27:49Z by davidxu 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). Revision Changes Path 1.75 +160 -2 src/sys/kern/kern_umtx.c 1.1 +66 -0 src/sys/sys/_umtx.h (new) 1.34 +12 -36 src/sys/sys/umtx.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001040528.o045SYOC012402>