apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: Handholding: Locking
Date Tue, 31 Jul 2001 07:06:49 GMT
Justin Erenkrantz wrote:

> > 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.

What is the difference between a APR_MUTEX lock and an APR_READWRITE
lock?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."
Mime
View raw message