Subj : Re: Recursive lock? To : comp.programming.threads From : Phil Frisbie, Jr. Date : Thu May 19 2005 09:50 pm Michel wrote: > Anyways I have a question for the developers on the recursive locks is > evil camp and the win32 platform. Have you made non recursirve wrappers > for the recursive CriticalSection and mutex type? Yes, I have my own C wrapper for common thread functions wrapped around native Windows threads and pthreads for ease of portability. It only supports a non-recursive mutex. I was bit hard with recursive mutexes a few years ago. Code that worked fine on Linux and Windows would lock up on Solaris. Until that Solaris report I did not know I was calling a mutex recursively, so I modified my mutex code to be more strict on error checking and found it! I simply had to refactor two functions to fix it. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com .