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

Unified Diff: sky/engine/wtf/ThreadingPthreads.cpp

Issue 709603006: Remove a bunch of OS(MACOSX) code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Even more Created 6 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: sky/engine/wtf/ThreadingPthreads.cpp
diff --git a/sky/engine/wtf/ThreadingPthreads.cpp b/sky/engine/wtf/ThreadingPthreads.cpp
index 24924879e671336ed1a51444c78b9ace286de963..3531e683e4a55a89c646ecf8b1955d480ff8e791 100644
--- a/sky/engine/wtf/ThreadingPthreads.cpp
+++ b/sky/engine/wtf/ThreadingPthreads.cpp
@@ -46,15 +46,9 @@
#include "wtf/dtoa/cached-powers.h"
#include <errno.h>
-#if !COMPILER(MSVC)
#include <limits.h>
#include <sched.h>
#include <sys/time.h>
-#endif
-
-#if OS(MACOSX)
-#include <objc/objc-auto.h>
-#endif
namespace WTF {
@@ -164,14 +158,6 @@ static ThreadIdentifier establishIdentifierForPthreadHandle(const pthread_t& pth
void initializeCurrentThreadInternal(const char* threadName)
{
-#if OS(MACOSX)
- pthread_setname_np(threadName);
-
- // All threads that potentially use APIs above the BSD layer must be registered with the Objective-C
- // garbage collector in case API implementations use garbage-collected memory.
- objc_registerThreadWithCollector();
-#endif
-
ThreadIdentifier id = identifierByPthreadHandle(pthread_self());
ASSERT(id);
ThreadIdentifierData::initialize(id);

Powered by Google App Engine
This is Rietveld 408576698