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

Unified Diff: Source/core/inspector/InspectorInstrumentation.h

Issue 1301323008: Fix data race in InspectorInstrumentation::hasFrontends (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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: Source/core/inspector/InspectorInstrumentation.h
diff --git a/Source/core/inspector/InspectorInstrumentation.h b/Source/core/inspector/InspectorInstrumentation.h
index 440c7d0de6724225ab0ecd4b25cbe671189f1a2e..30bda7daa2c24085c1b21079a1969a05aaeb089c 100644
--- a/Source/core/inspector/InspectorInstrumentation.h
+++ b/Source/core/inspector/InspectorInstrumentation.h
@@ -91,7 +91,7 @@ private:
inline void frontendCreated() { atomicIncrement(&FrontendCounter::s_frontendCounter); }
inline void frontendDeleted() { atomicDecrement(&FrontendCounter::s_frontendCounter); }
-inline bool hasFrontends() { return FrontendCounter::s_frontendCounter; }
+inline bool hasFrontends() { return acquireLoad(&FrontendCounter::s_frontendCounter); }
CORE_EXPORT void registerInstrumentingAgents(InstrumentingAgents*);
CORE_EXPORT void unregisterInstrumentingAgents(InstrumentingAgents*);
« 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