TypeRegistry requires a reentrant mutex

This commit is contained in:
David Rose 2007-04-12 17:35:00 +00:00
parent ac89fe25bd
commit 9ada65e1d4
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ freshen_derivations() {
////////////////////////////////////////////////////////////////////
INLINE void TypeRegistry::
init_lock() {
if (_lock == (MutexImpl *)NULL) {
_lock = new MutexImpl;
if (_lock == (ReMutexImpl *)NULL) {
_lock = new ReMutexImpl;
}
}

View File

@ -25,7 +25,7 @@
#include <algorithm>
MutexImpl *TypeRegistry::_lock = NULL;
ReMutexImpl *TypeRegistry::_lock = NULL;
TypeRegistry *TypeRegistry::_global_pointer = NULL;
////////////////////////////////////////////////////////////////////

View File

@ -111,7 +111,7 @@ private:
bool _derivations_fresh;
static MutexImpl *_lock;
static ReMutexImpl *_lock;
static TypeRegistry *_global_pointer;
friend class TypeHandle;