Bug 1644224 - make nsTimerEvent::sCanDeleteAllocator atomic/sequentially consistent r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D78771
This commit is contained in:
Dana Keeler 2020-06-08 19:59:40 +00:00
parent c8d75d5960
commit ac4d01ea49

View File

@ -176,12 +176,12 @@ class nsTimerEvent final : public CancelableRunnable {
static TimerEventAllocator* sAllocator;
static Atomic<int32_t, SequentiallyConsistent> sAllocatorUsers;
static bool sCanDeleteAllocator;
static Atomic<bool, SequentiallyConsistent> sCanDeleteAllocator;
};
TimerEventAllocator* nsTimerEvent::sAllocator = nullptr;
Atomic<int32_t, SequentiallyConsistent> nsTimerEvent::sAllocatorUsers;
bool nsTimerEvent::sCanDeleteAllocator = false;
Atomic<bool, SequentiallyConsistent> nsTimerEvent::sCanDeleteAllocator;
namespace {