oops, another threading fix

This commit is contained in:
David Rose
2007-04-05 14:38:25 +00:00
parent 26f4073003
commit 291c14a9b4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ init_lock() {
////////////////////////////////////////////////////////////////////
template<class Type>
void DeletedChain<Type>::
do_init_lock(MutexImpl *lock) {
do_init_lock(MutexImpl *&lock) {
MutexImpl *new_lock = new MutexImpl;
// Even though DELETED_CHAIN_USE_ATOMIC_EXCHANGE is not true, we
+1 -1
View File
@@ -119,7 +119,7 @@ private:
// If we don't have atomic compare-and-exchange, we need to use a
// Mutex to protect the above linked list.
static INLINE void init_lock();
static void do_init_lock(MutexImpl *lock);
static void do_init_lock(MutexImpl *&lock);
static MutexImpl *_lock;
#endif
};