apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apr/locks/os2 thread_mutex.c
Date Wed, 17 Oct 2001 01:58:59 GMT
On Tue, 16 Oct 2001 18:31:46 -0700, Aaron Bannert wrote:

>On Wed, Oct 17, 2001 at 01:14:52AM -0000, bjh@apache.org wrote:
>> bjh         01/10/16 18:14:52
>> 
>>   Modified:    locks/os2 thread_mutex.c
>>   Log:
>>   Remove FIXME comment. Yes, OS/2 native locks support nesting.

[...]

>Sorry, my comment was totally unclear and misleading. I meant to say:
>
>OS/2 needs to optionally support nested locks depending on if
>(flags & APR_THREAD_MUTEX_NESTED) is true. Same goes for the other
>platforms -- Unix is taken care of.
>
>I guess we'd have to ask the converse: Can OS/2 support non-nested locks?

Not with the native mutex, no. As I understand it, this is just a
performance optimisation so allowing nesting when not actually required
won't hurt. However, running without nesting support when it IS required
will lead to deadlock.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message