Changeset 36763 in webkit for trunk/JavaScriptCore
- Timestamp:
- Sep 22, 2008, 6:27:51 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r36757 r36763 1 2008-09-22 Tor Arne Vestbø <[email protected]> 2 3 Reviewed by Simon. 4 5 Initialize QCoreApplication in kjs binary/Shell.cpp 6 7 This allows us to use QCoreApplication::instance() to 8 get the main thread in ThreadingQt.cpp 9 10 * kjs/Shell.cpp: 11 (main): 12 * wtf/ThreadingQt.cpp: 13 (WTF::initializeThreading): 14 1 15 2008-09-21 Darin Adler <[email protected]> 2 16 -
trunk/JavaScriptCore/kjs/Shell.cpp
r36726 r36763 70 70 71 71 #if PLATFORM(QT) 72 #include <QCoreApplication> 72 73 #include <QDateTime> 73 74 #endif … … 300 301 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); 301 302 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE); 303 #endif 304 305 #if PLATFORM(QT) 306 QCoreApplication app(argc, argv); 302 307 #endif 303 308 -
trunk/JavaScriptCore/wtf/ThreadingQt.cpp
r36745 r36763 34 34 #include "MathExtras.h" 35 35 36 #if PLATFORM(DARWIN)37 36 #include <QCoreApplication> 38 #endif39 37 #include <QMutex> 40 38 #include <QThread> … … 129 127 threadMapMutex(); 130 128 wtf_random_init(); 131 #if PLATFORM(DARWIN)132 129 QThread* mainThread = QCoreApplication::instance()->thread(); 133 130 mainThreadIdentifier = establishIdentifierForThread(mainThread); 134 #else135 mainThreadIdentifier = currentThread();136 #endif137 131 initializeMainThread(); 138 132 }
Note:
See TracChangeset
for help on using the changeset viewer.