зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1652762 - Make mURISetByDetection an Atomic, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D83616
This commit is contained in:
Родитель
7fa11883f2
Коммит
ec9d1eb9d5
|
@ -16,7 +16,7 @@ namespace net {
|
|||
extern mozilla::LazyLogModule gHostResolverLog;
|
||||
#define LOG(args) MOZ_LOG(gHostResolverLog, mozilla::LogLevel::Debug, args)
|
||||
|
||||
TRRServiceBase::TRRServiceBase() : mMode(0) {}
|
||||
TRRServiceBase::TRRServiceBase() : mMode(0), mURISetByDetection(false) {}
|
||||
|
||||
void TRRServiceBase::ProcessURITemplate(nsACString& aURI) {
|
||||
// URI Template, RFC 6570.
|
||||
|
|
|
@ -36,10 +36,11 @@ class TRRServiceBase {
|
|||
nsCString mPrivateURI;
|
||||
// Pref caches should only be used on the main thread.
|
||||
bool mURIPrefHasUserValue = false;
|
||||
bool mURISetByDetection = false;
|
||||
nsCString mURIPref;
|
||||
nsCString mRolloutURIPref;
|
||||
|
||||
Atomic<uint32_t, Relaxed> mMode;
|
||||
Atomic<bool, Relaxed> mURISetByDetection;
|
||||
};
|
||||
|
||||
} // namespace net
|
||||
|
|
Загрузка…
Ссылка в новой задаче