Changeset 58179 in webkit for trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
- Timestamp:
- Apr 23, 2010, 11:59:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
r55429 r58179 58 58 static Mutex* atomicallyInitializedStaticMutex; 59 59 60 #if !OS(DARWIN) || PLATFORM(CHROMIUM) || USE(WEB_THREAD)61 static pthread_t mainThread; // The thread that was the first to call initializeThreading(), which must be the main thread.62 #endif63 64 60 void clearPthreadHandleForIdentifier(ThreadIdentifier); 65 61 … … 76 72 threadMapMutex(); 77 73 initializeRandomNumberGenerator(); 78 #if !OS(DARWIN) || PLATFORM(CHROMIUM) || USE(WEB_THREAD)79 mainThread = pthread_self();80 #endif81 74 initializeMainThread(); 82 75 } … … 241 234 } 242 235 243 bool isMainThread()244 {245 #if OS(DARWIN) && !PLATFORM(CHROMIUM) && !USE(WEB_THREAD)246 return pthread_main_np();247 #else248 return pthread_equal(pthread_self(), mainThread);249 #endif250 }251 252 236 Mutex::Mutex() 253 237 {
Note:
See TracChangeset
for help on using the changeset viewer.