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

Unified Diff: Source/wtf/ThreadingWin.cpp

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports Created 7 years, 7 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/wtf/ThreadingPthreads.cpp ('k') | Source/wtf/WTFExport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ThreadingWin.cpp
diff --git a/Source/wtf/ThreadingWin.cpp b/Source/wtf/ThreadingWin.cpp
index 99ebfb3e1a3ba744c7dbb868a6e7374cb3ae517c..85173f47133ee5289d89377a2ab492ae8e71f0d6 100644
--- a/Source/wtf/ThreadingWin.cpp
+++ b/Source/wtf/ThreadingWin.cpp
@@ -167,8 +167,8 @@ static Mutex& threadMapMutex()
void initializeThreading()
{
- if (atomicallyInitializedStaticMutex)
- return;
+ // This should only be called once.
+ ASSERT(!atomicallyInitializedStaticMutex);
WTF::double_conversion::initialize();
// StringImpl::empty() does not construct its static string in a threadsafe fashion,
« no previous file with comments | « Source/wtf/ThreadingPthreads.cpp ('k') | Source/wtf/WTFExport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698