Bug 1600889 - gShuttingDownThread in nsUrlClassifierDBService should be Atomic r=gcp

Differential Revision: https://phabricator.services.mozilla.com/D57954

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dimi Lee 2019-12-20 12:46:45 +00:00
parent ff130db72b
commit a8d6bc0307

View file

@ -278,7 +278,7 @@ nsIThread* nsUrlClassifierDBService::gDbBackgroundThread = nullptr;
// Once we've committed to shutting down, don't do work in the background
// thread.
static bool gShuttingDownThread = false;
static Atomic<bool> gShuttingDownThread(false);
static uint32_t sGethashNoise = GETHASH_NOISE_DEFAULT;