mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-21 05:59:27 -05:00
oops, another threading fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user