Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: tools/gn/args.cc

Issue 136783005: Acquire lock in Args::SetSystemVars() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/args.cc
diff --git a/tools/gn/args.cc b/tools/gn/args.cc
index 5a031c78993fc823fc9f64ebe9376de58d1e1fae..795c1495669c0f444b5dd32670059fdfdea97a75 100644
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
@@ -163,6 +163,8 @@ bool Args::VerifyAllOverridesUsed(Err* err) const {
}
void Args::SetSystemVars(Scope* dest) const {
+ base::AutoLock lock(lock_);
+
// Host OS.
const char* os = NULL;
#if defined(OS_WIN)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698