[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

apr locks

From: Ben Collins-Sussman <sussman_at_newton.collab.net>
Date: 2000-12-13 19:13:47 CET

Greg S. --

Do the routines in apr_lock.h work?

I have a global hash the contains all loaded RA-libraries. I want the
structure global, so that multiple threads and processes can share the
vtables. However, I want to keep things threadsafe. When a thread
needs to load a new RA library, I want to lock down the hash first.

However, I have to admit, I've never used muteces. Looking at apr's
interface, it looks like I need to

  * create a lock
  * associate data with it
  * lock the lock
  * edit the data
  * unlock the lock

Is this right?
Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.