Changeset 36056 in webkit for trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
- Timestamp:
- Sep 3, 2008, 9:37:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
r35598 r36056 30 30 #include "Threading.h" 31 31 32 #include <wtf/HashMap.h> 33 #include <wtf/MathExtras.h> 32 #include "HashMap.h" 33 #include "MainThread.h" 34 #include "MathExtras.h" 34 35 35 36 #include <errno.h> … … 40 41 Mutex* atomicallyInitializedStaticMutex; 41 42 42 static ThreadIdentifier mainThreadIdentifier; // More precisely, the thread that was the first to call initializeThreading(). 43 #if !PLATFORM(DARWIN) 44 static ThreadIdentifier mainThreadIdentifier; // The thread that was the first to call initializeThreading(), which must be the main thread. 45 #endif 43 46 44 47 static Mutex& threadMapMutex() … … 54 57 threadMapMutex(); 55 58 wtf_random_init(); 59 #if !PLATFORM(DARWIN) 56 60 mainThreadIdentifier = currentThread(); 61 #endif 62 initializeMainThread(); 57 63 } 58 64 }
Note:
See TracChangeset
for help on using the changeset viewer.