[redland-dev] Recursive mutex

Brendan anarch at silcom.com
Sat Aug 29 05:04:11 CEST 2009


Hi, I'm new to Redland and trying to get a custom build for Windows  
working.  It seems to me that there's an assumption that a mutex can  
be re-acquired by a thread that holds it already.  But the mutexes  
are all created with default parameters, and as I understand pthreads  
the default is that a mutex can only be locked once.  The cache test  
for example deadlocks in my (single-threaded) configuration.  Am I  
mistaken or should the mutexes be set up with PTHREAD_MUTEX_RECURSIVE?



More information about the redland-dev mailing list