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

Unified Diff: Source/wtf/Threading.h

Issue 874203002: Add a thread-safety assertion in DEFINE_STATIC_LOCAL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added noncopyable Created 5 years, 10 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
Index: Source/wtf/Threading.h
diff --git a/Source/wtf/Threading.h b/Source/wtf/Threading.h
index 1a741d3122d7b4d698268876594c868bba27fd4e..184aafb430ba47562ae5cb13eac7cb2145a8626c 100644
--- a/Source/wtf/Threading.h
+++ b/Source/wtf/Threading.h
@@ -76,6 +76,12 @@ WTF_EXPORT ThreadIdentifier currentThread();
WTF_EXPORT void lockAtomicallyInitializedStaticMutex();
WTF_EXPORT void unlockAtomicallyInitializedStaticMutex();
+#if ENABLE(ASSERT)
+WTF_EXPORT bool isAtomicallyInitializedStaticMutexLockHeld();
+WTF_EXPORT bool isBeforeThreadCreated();
+WTF_EXPORT void willCreateThread();
+#endif
+
} // namespace WTF
using WTF::ThreadIdentifier;

Powered by Google App Engine
This is Rietveld 408576698