Verified Commit 231aaa9e authored by Randell Jesup's avatar Randell Jesup Committed by ma1
Browse files

Bug 2036895: Fix Dashboard::mEnableLogging data race r=necko-reviewers,valentin

parent 8ba19e29
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
#ifndef nsDashboard_h__
#define nsDashboard_h__

#include "mozilla/Atomics.h"
#include "mozilla/Mutex.h"
#include "mozilla/net/DashboardTypes.h"
#include "nsIDashboard.h"
@@ -65,7 +66,7 @@ class Dashboard final : public nsIDashboard, public nsIDashboardEventNotifier {
    mozilla::Mutex lock MOZ_UNANNOTATED;
  };

  bool mEnableLogging;
  Atomic<bool, Relaxed> mEnableLogging;
  WebSocketData mWs;

 private: