httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: APR and mutexes ?
Date Thu, 13 Jan 2005 18:36:30 GMT
On Thu, 13 Jan 2005 19:01:28 +0100, Xavier Beaudouin <kiwi@oav.net> wrote:
> Hello there,
> 
> I have inside a Apache2 module a call to a non thread safe function. I
> need then to do :
> 
> mutex_set();
> call_to_non_thread_safe();
> unset_mutex();
> 
> Now I can do that using POSIX calls, but I really like to use APR calls.
> 
> Is there any good doc

apr_thread_mutex.h

> or even an example module I can use to make such
> work ?

$ cd /apache/source/tree
$ grep apr_thread_mutex `find modules -name '*.c'`

These modules will give examples of where in Apache module the
initialization should occur, as well as sample calls during request
processing.

Mime
View raw message