Changeset 31690 in webkit for trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
- Timestamp:
- Apr 7, 2008, 2:04:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
r31560 r31690 40 40 Mutex* atomicallyInitializedStaticMutex; 41 41 42 static ThreadIdentifier mainThreadIdentifier; 43 42 44 void initializeThreading() 43 45 { … … 45 47 atomicallyInitializedStaticMutex = new Mutex; 46 48 wtf_random_init(); 49 mainThreadIdentifier = currentThread(); 47 50 } 48 51 } … … 145 148 } 146 149 150 bool isMainThread() 151 { 152 return currentThread() == mainThreadIdentifier; 153 } 154 147 155 Mutex::Mutex() 148 156 {
Note:
See TracChangeset
for help on using the changeset viewer.