Changeset 51211 in webkit for trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
- Timestamp:
- Nov 19, 2009, 3:32:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.