Justin Erenkrantz <[EMAIL PROTECTED]> writes:

> On Fri, Jun 15, 2001 at 05:59:14AM -0400, Jeff Trawick wrote:
> > Jeff Trawick <[EMAIL PROTECTED]> writes:
> > 
> > > 1. It looks to me that on Unix APR mutexes are always nesting if
> > >    APR_HAS_THREADS and APR mutexes are never nesting (subject to their
> > >    underlying implementation of course).  This is not cool.
> > 
> > I meant to say "It looks to me that on Unix APR mutexes are always nesting 
> > if
> > APR_HAS_THREADS and APR mutexes are never nesting (subject to their
> > underlying implementation of course) if !APR_HAS_THREADS."
> 
> Can you clarify what you mean by nesting?
> 
> Do you mean:
> 
> Thread A holds one mutex (say in apr_sendfile)
> Thread A also obtains another mutex later on (say in apr_pool)

no, by "nested mutex" I mean that this is allowed

Thread A holds mutex 1
Thread A obtains mutex 1 again

what I call "nested mutex acquire" is sometimes called "recursive
mutex acquire"

-- 
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Reply via email to