You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by César Leonardo Blum Silveira <ce...@gmail.com> on 2007/06/22 16:07:16 UTC

APR global mutexes and threads

Do global mutexes work for ensuring mutual exclusion for threads?

Thank you,

-- 
César L. B. Silveira
http://cesarbs.wordpress.com/

Re: APR global mutexes and threads

Posted by Sander Temme <sc...@apache.org>.
On Jun 22, 2007, at 7:07 AM, César Leonardo Blum Silveira wrote:

> Do global mutexes work for ensuring mutual exclusion for threads?

Yes.  If you look at the source code, you'll see that the global  
mutexes cover both inter-thread and inter-process locking.

S.

-- 
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




Re: APR global mutexes and threads

Posted by Aaron Bannert <aa...@clove.org>.
On Fri, Jun 22, 2007 at 11:07:16AM -0300, César Leonardo Blum Silveira wrote:
> Do global mutexes work for ensuring mutual exclusion for threads?

Yes, they are designed to provide mutual exclusion for both threads
and processes on all APR supported platforms.

-aaron