зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1502207 Part 3 - Use new atomic access API in internal record/replay logic, r=froydnj.
--HG-- extra : rebase_source : f70e5def2b2cb96faf8d18d32cb86b898e894550
This commit is contained in:
Родитель
bae5179cfb
Коммит
b951ae43fd
|
@ -29,7 +29,7 @@ RegisterCallbackData(void* aData)
|
|||
return;
|
||||
}
|
||||
|
||||
AutoOrderedAtomicAccess at;
|
||||
AutoOrderedAtomicAccess at(&gCallbackData);
|
||||
StaticMutexAutoLock lock(gCallbackMutex);
|
||||
if (!gCallbackData) {
|
||||
gCallbackData = new ValueIndex();
|
||||
|
|
|
@ -385,7 +385,7 @@ RecordReplayInterface_InternalRegisterThing(void* aThing)
|
|||
return;
|
||||
}
|
||||
|
||||
AutoOrderedAtomicAccess at;
|
||||
AutoOrderedAtomicAccess at(&gGenericThings);
|
||||
StaticMutexAutoLock lock(gGenericThingsMutex);
|
||||
if (!gGenericThings) {
|
||||
gGenericThings = new ValueIndex();
|
||||
|
|
|
@ -69,7 +69,7 @@ RecordReplayInterface_RegisterTrigger(void* aObj, const std::function<void()>& a
|
|||
|
||||
size_t id;
|
||||
{
|
||||
AutoOrderedAtomicAccess order;
|
||||
AutoOrderedAtomicAccess order(gTriggers);
|
||||
StaticMutexAutoLock lock(gTriggersMutex);
|
||||
|
||||
TriggerInfoMap::iterator iter = gTriggerInfoMap->find(aObj);
|
||||
|
|
Загрузка…
Ссылка в новой задаче