Changeset 58179 in webkit for trunk/JavaScriptCore/wtf/qt/ThreadingQt.cpp
- Timestamp:
- Apr 23, 2010, 11:59:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/qt/ThreadingQt.cpp
r53714 r58179 85 85 static Mutex* atomicallyInitializedStaticMutex; 86 86 87 static ThreadIdentifier mainThreadIdentifier;88 89 87 static Mutex& threadMapMutex() 90 88 { … … 147 145 threadMapMutex(); 148 146 initializeRandomNumberGenerator(); 149 QThread* mainThread = QCoreApplication::instance()->thread();150 mainThreadIdentifier = identifierByQthreadHandle(mainThread);151 if (!mainThreadIdentifier)152 mainThreadIdentifier = establishIdentifierForThread(mainThread);153 147 initializeMainThread(); 154 148 } … … 216 210 } 217 211 218 bool isMainThread()219 {220 return QThread::currentThread() == QCoreApplication::instance()->thread();221 }222 223 212 Mutex::Mutex() 224 213 : m_mutex(new QMutex())
Note:
See TracChangeset
for help on using the changeset viewer.