Changeset 32808 in webkit for trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
- Timestamp:
- May 2, 2008, 3:29:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
r31939 r32808 40 40 Mutex* atomicallyInitializedStaticMutex; 41 41 42 static ThreadIdentifier mainThreadIdentifier; 42 static ThreadIdentifier mainThreadIdentifier; // More precisely, the thread that was the first to call initializeThreading(). 43 43 44 44 static Mutex& threadMapMutex() … … 151 151 bool isMainThread() 152 152 { 153 #if PLATFORM(DARWIN) 154 return pthread_main_np(); 155 #else 153 156 return currentThread() == mainThreadIdentifier; 157 #endif 154 158 } 155 159
Note:
See TracChangeset
for help on using the changeset viewer.