Re: cvs commit: src/sys/sys proc.h syscall.h syscall.mk sysproto.h umtx.h src/sys/kern init_sysent.c kern_umtx.c syscalls.c syscalls.master

From: David Xu <davidxu_at_freebsd.org>
Date: Sat, 18 Dec 2004 21:46:45 +0800
I have a demo program there to explain the shared umtx
feature:
http://people.freebsd.org/~davidxu/umtx_cond.c

David Xu wrote:

>davidxu     2004-12-18 12:52:45 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/sys              proc.h syscall.h syscall.mk sysproto.h 
>                         umtx.h 
>    sys/kern             init_sysent.c kern_umtx.c syscalls.c 
>                         syscalls.master 
>  Log:
>  1. make umtx sharable between processes, the way is two or more processes
>     call mmap() to create a shared space, and then initialize umtx on it,
>     after that, each thread in different processes can use the umtx same
>     as threads in same process.
>  2. introduce a new syscall _umtx_op to support timed lock and condition
>     variable semantics. also, orignal umtx_lock and umtx_unlock inline
>     functions now are reimplemented by using _umtx_op, the _umtx_op can
>     use arbitrary id not just a thread id.
> 
>
Received on Sat Dec 18 2004 - 13:46:52 UTC