Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2009 14:16:33 -0700
From:      Xin LI <delphij@delphij.net>
To:        Randall Stewart <rrs@lakerest.net>
Cc:        threads@freebsd.org
Subject:   Re: A mutex for inter-process ;-)
Message-ID:  <49D136B1.6060809@delphij.net>
In-Reply-To: <7D4F6788-0F12-4863-9635-7FADA9115D16@lakerest.net>
References:  <7D4F6788-0F12-4863-9635-7FADA9115D16@lakerest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Randall Stewart wrote:
> Hi all:
> 
> I have recently written a small set of routines that allow
> two process to have a "mutex" between them.. actually it allows
> all of the threads in any set of processes to have mutexes between
> themselves ;-)
> 
> Anyway it seems to be working fairly well.. I still have to write a man
> page
> for it (documentation always last).. and eventually I would like to port in
> some of the WITNESS type features since the mutex's have names..
> 
> I probably should also think about scaling it up a bit.. right now its
> really
> more for a small scale (100 or less mutexes)...
> 
> Who should I talk to about getting this in... having it reviewed etc. I
> think
> it belongs in libthr since it really needs the tid of the pthreads from the
> pthread_t type... and for now I have a horrible hack in to get it ;-)

I think davidxu@ deischen@ and julian@?

BTW.  How do you handle with one process exit (abnormally) without
releasing the mutex?  Just curious :)

Cheers,
- --
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAknRNrEACgkQi+vbBBjt66DIswCbBWRMJN55c60UTBBIZMRCY4zo
6hcAnixfVXdtdnn0fT/Z31v0EdyVCVlH
=JL/U
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D136B1.6060809>