Bug 1190985 - Fix data race in DebugMutexAutoLock r=mcmanus

This commit is contained in:
Nicholas Hurley 2015-08-04 14:16:49 -07:00
parent 2bec2e6c53
commit b8854de4b0

View File

@ -58,10 +58,10 @@ public:
private:
Mutex *mLock;
static PRThread *sDebugOwningThread;
static Atomic<PRThread *, Relaxed> sDebugOwningThread;
};
PRThread *DebugMutexAutoLock::sDebugOwningThread = nullptr;
Atomic<PRThread *, Relaxed> DebugMutexAutoLock::sDebugOwningThread;
DebugMutexAutoLock::DebugMutexAutoLock(Mutex& mutex)
:mLock(&mutex)