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

Unified Diff: third_party/WebKit/Source/wtf/Threading.h

Issue 2474303004: Remove mutex locks in SchemeRegistry (Closed)
Patch Set: tkent review Created 4 years, 1 month 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
Index: third_party/WebKit/Source/wtf/Threading.h
diff --git a/third_party/WebKit/Source/wtf/Threading.h b/third_party/WebKit/Source/wtf/Threading.h
index ffe95e6ca2ed435983ff0e16f7bb671007cb767f..7ad57e1f891037f32f720bc35985b0082bfe652a 100644
--- a/third_party/WebKit/Source/wtf/Threading.h
+++ b/third_party/WebKit/Source/wtf/Threading.h
@@ -65,11 +65,11 @@ WTF_EXPORT ThreadIdentifier currentThread();
WTF_EXPORT void lockAtomicallyInitializedStaticMutex();
WTF_EXPORT void unlockAtomicallyInitializedStaticMutex();
-#if ENABLE(ASSERT)
+// Empty implementations of these functions are defined when !ENABLE(ASSERT) so
+// they can be used within DCHECKs.
kinuko 2016/11/09 03:56:37 The empty impls don't really make sense, I might j
Charlie Harrison 2016/11/09 15:31:39 I agree with you. Changed to be a comment.
WTF_EXPORT bool isAtomicallyInitializedStaticMutexLockHeld();
WTF_EXPORT bool isBeforeThreadCreated();
WTF_EXPORT void willCreateThread();
-#endif
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698