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

Unified Diff: Source/platform/WebThreadSupportingGC.cpp

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
« no previous file with comments | « Source/modules/webdatabase/Database.cpp ('k') | Source/wtf/MainThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/WebThreadSupportingGC.cpp
diff --git a/Source/platform/WebThreadSupportingGC.cpp b/Source/platform/WebThreadSupportingGC.cpp
index df76335a69473b83aed6c4e6dd002bd3b9652250..b08ed0e27448628b6844e04dcc8f5578f52a8c16 100644
--- a/Source/platform/WebThreadSupportingGC.cpp
+++ b/Source/platform/WebThreadSupportingGC.cpp
@@ -5,10 +5,15 @@
#include "config.h"
#include "platform/WebThreadSupportingGC.h"
+#include "wtf/Threading.h"
+
namespace blink {
PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name)
{
+#if ENABLE(ASSERT)
+ WTF::willCreateThread();
kbalazs 2015/02/11 05:08:47 How will people not forget to do this when they ha
kinuko 2015/02/12 02:31:22 I assumed that in blink we'll be anyway using WebT
+#endif
return adoptPtr(new WebThreadSupportingGC(name));
}
« no previous file with comments | « Source/modules/webdatabase/Database.cpp ('k') | Source/wtf/MainThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698