mozilla::Mutex is a bare wrapper around
PRLock. Please see Introduction_to_NSPR for a high-level summary of its semantics.
Mutex(const char* aName)
Initialize the mutex with a name that can reference it.
Lock the mutex.
Unlock the mutex.
Assert that the current thread has locked this mutex. Does not incur a runtime penalty in optimized builds.
Assert that the current thread does not own this mutex. Does not incur a runtime penalty in optimized builds.