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

Unified Diff: Source/wtf/ThreadingPthreads.cpp

Issue 14482004: Remove OS(QNX) support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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/StackBounds.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ThreadingPthreads.cpp
diff --git a/Source/wtf/ThreadingPthreads.cpp b/Source/wtf/ThreadingPthreads.cpp
index fa7b706b942c52887df7ecd97894a6b780ec9ad2..21adbda1153c37e3a0d0c9a11b6bad9fe3190334 100644
--- a/Source/wtf/ThreadingPthreads.cpp
+++ b/Source/wtf/ThreadingPthreads.cpp
@@ -110,26 +110,11 @@ static Mutex& threadMapMutex()
return mutex;
}
-#if OS(QNX) && CPU(ARM_THUMB2)
-static void enableIEEE754Denormal()
-{
- // Clear the ARM_VFP_FPSCR_FZ flag in FPSCR.
- unsigned fpscr;
- asm volatile("vmrs %0, fpscr" : "=r"(fpscr));
- fpscr &= ~0x01000000u;
- asm volatile("vmsr fpscr, %0" : : "r"(fpscr));
-}
-#endif
-
void initializeThreading()
{
if (atomicallyInitializedStaticMutex)
return;
-#if OS(QNX) && CPU(ARM_THUMB2)
- enableIEEE754Denormal();
-#endif
-
WTF::double_conversion::initialize();
// StringImpl::empty() does not construct its static string in a threadsafe fashion,
// so ensure it has been initialized from here.
@@ -216,8 +201,6 @@ void initializeCurrentThreadInternal(const char* threadName)
{
#if HAVE(PTHREAD_SETNAME_NP)
pthread_setname_np(threadName);
-#elif OS(QNX)
- pthread_setname_np(pthread_self(), threadName);
#else
UNUSED_PARAM(threadName);
#endif
@@ -228,10 +211,6 @@ void initializeCurrentThreadInternal(const char* threadName)
objc_registerThreadWithCollector();
#endif
-#if OS(QNX) && CPU(ARM_THUMB2)
- enableIEEE754Denormal();
-#endif
-
ThreadIdentifier id = identifierByPthreadHandle(pthread_self());
ASSERT(id);
ThreadIdentifierData::initialize(id);
« no previous file with comments | « Source/wtf/StackBounds.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698