Changeset 32949 in webkit for trunk/JavaScriptCore
- Timestamp:
- May 7, 2008, 2:37:13 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r32877 r32949 1 2008-05-07 Ariya Hidayat <[email protected]> 2 3 Reviewed by Simon. 4 5 Support for isMainThread in the Qt port. 6 7 * wtf/ThreadingQt.cpp: 8 (WTF::initializeThreading): Adjusted. 9 (WTF::isMainThread): Added. 10 1 11 2008-05-05 Darin Adler <[email protected]> 2 12 -
trunk/JavaScriptCore/wtf/ThreadingQt.cpp
r32477 r32949 65 65 Mutex* atomicallyInitializedStaticMutex; 66 66 67 static ThreadIdentifier mainThreadIdentifier; 68 67 69 static Mutex& threadMapMutex() 68 70 { … … 123 125 threadMapMutex(); 124 126 wtf_random_init(); 127 mainThreadIdentifier = currentThread(); 125 128 } 126 129 } … … 166 169 } 167 170 171 bool isMainThread() 172 { 173 return currentThread() == mainThreadIdentifier; 174 } 175 168 176 Mutex::Mutex() 169 177 : m_mutex(new QMutex())
Note:
See TracChangeset
for help on using the changeset viewer.