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

Unified Diff: Source/wtf/ThreadingWin.cpp

Issue 22433006: Remove dead code guarded by OS(WINDOWS) && USE(PTHREADS). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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/ThreadSpecificWin.cpp ('k') | no next file » | 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 1716a158b6abb704557121c6c10059848df0ef6c..971274cee677b23a024b2b7da37cfdb902bed6c3 100644
--- a/Source/wtf/ThreadingWin.cpp
+++ b/Source/wtf/ThreadingWin.cpp
@@ -94,6 +94,7 @@
#include "MainThread.h"
#include "ThreadFunctionInvocation.h"
+#include "ThreadSpecific.h"
#include <windows.h>
#include "wtf/CurrentTime.h"
#include "wtf/HashMap.h"
@@ -103,10 +104,6 @@
#include "wtf/RandomNumberSeed.h"
#include "wtf/WTFThreadData.h"
-#if !USE(PTHREADS) && OS(WINDOWS)
-#include "ThreadSpecific.h"
-#endif
-
#include <errno.h>
#include <process.h>
@@ -205,10 +202,8 @@ static unsigned __stdcall wtfThreadEntryPoint(void* param)
OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(static_cast<ThreadFunctionInvocation*>(param));
invocation->function(invocation->data);
-#if !USE(PTHREADS) && OS(WINDOWS)
// Do the TLS cleanup.
ThreadSpecificThreadExit();
-#endif
return 0;
}
« no previous file with comments | « Source/wtf/ThreadSpecificWin.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698