Changeset 51211 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 19, 2009, 3:32:05 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r51199 r51211 1 2009-11-19 Dmitry Titov <[email protected]> 2 3 Reviewed by David Levin. 4 5 isMainThread() on Chromium (Mac and Linux) is so slow it timeouts LayoutTests.. 6 https://bugs.webkit.org/show_bug.cgi?id=31693 7 8 * wtf/ThreadingPthreads.cpp: 9 (WTF::initializeThreading): grab and use the pthread_t of the main thread instead of ThreadIdentifier. 10 (WTF::isMainThread): Ditto. 11 1 12 2009-11-19 Laszlo Gombos <[email protected]> 2 13 -
trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
r50052 r51211 57 57 58 58 #if !PLATFORM(DARWIN) || PLATFORM(CHROMIUM) 59 static ThreadIdentifier mainThreadIdentifier; // The thread that was the first to call initializeThreading(), which must be the main thread.59 static pthread_t mainThread; // The thread that was the first to call initializeThreading(), which must be the main thread. 60 60 #endif 61 61 … … 73 73 initializeRandomNumberGenerator(); 74 74 #if !PLATFORM(DARWIN) || PLATFORM(CHROMIUM) 75 mainThread Identifier = currentThread();75 mainThread = pthread_self(); 76 76 #endif 77 77 initializeMainThread(); … … 233 233 return pthread_main_np(); 234 234 #else 235 return currentThread() == mainThreadIdentifier;235 return pthread_equal(pthread_self(), mainThread); 236 236 #endif 237 237 }
Note:
See TracChangeset
for help on using the changeset viewer.