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:: INLINE void TypeRegistry::
init_lock() { init_lock() {
if (_lock == (MutexImpl *)NULL) { if (_lock == (ReMutexImpl *)NULL) {
_lock = new MutexImpl; _lock = new ReMutexImpl;
} }
} }

View File

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

View File

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