Changeset 36763 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Sep 22, 2008, 6:27:51 AM (17 years ago)
Author:
[email protected]
Message:

2008-09-22 Tor Arne Vestbø <[email protected]>

Reviewed by Simon.

Initialize QCoreApplication in kjs binary/Shell.cpp

This allows us to use QCoreApplication::instance() to
get the main thread in ThreadingQt.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/ThreadingQt.cpp

    r36745 r36763  
    3434#include "MathExtras.h"
    3535
    36 #if PLATFORM(DARWIN)
    3736#include <QCoreApplication>
    38 #endif
    3937#include <QMutex>
    4038#include <QThread>
     
    129127        threadMapMutex();
    130128        wtf_random_init();
    131 #if PLATFORM(DARWIN)
    132129        QThread* mainThread = QCoreApplication::instance()->thread();
    133130        mainThreadIdentifier = establishIdentifierForThread(mainThread);
    134 #else
    135         mainThreadIdentifier = currentThread();
    136 #endif
    137131        initializeMainThread();
    138132    }
Note: See TracChangeset for help on using the changeset viewer.