I’ll convert the CriticalSection code to wxCriticalSection and upload it to SVN (it’s a little tricky). I don’t know what to do for TryEnterCriticalSection though. I think I’m almost ready to check everything in.
Would the Boost mutex be of any help here?
http://www.boost.org/doc/libs/1_40_0/doc/html/thread/synchronization.html#thread.synchronization.mutex_concepts