apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: Handholding: Locking
Date Mon, 30 Jul 2001 21:55:11 GMT
On Mon, Jul 30, 2001 at 11:39:01PM +0200, Graham Leggett wrote:
> Hi all,
> 
> I need some handholding with the porting of some of the auth_ldap code
> from v1.3 to v2.0.
> 
> In the v1.3 code, I have locks being created like this:
> 
>  mtx = ap_create_mutex(NULL);
>  GET_MUTEX(mtx);
>  RELMUTEX(mtx);

apr_lock_create(&mtx, APR_MUTEX, APR_INTRAPROCESS, NULL, pool);
apr_lock_acquire(mtx);
apr_lock_release(mtx);

This is for a intraprocess mutex.  The flags in apr_lock.h can tell you
how to do other types of locks.

HTH.  -- justin


Mime
View raw message