Changeset 37040 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 28, 2008, 11:56:50 AM (17 years ago)
Author:
Simon Hausmann
Message:

2008-09-28 Simon Hausmann <Simon Hausmann>

Reviewed by David Hyatt.

In Qt's initializeThreading re-use an existing thread identifier for the main
thread if it exists.

currentThread() implicitly creates new identifiers and it could be that
it is called before initializeThreading().

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37012 r37040  
     12008-09-28  Simon Hausmann  <[email protected]>
     2
     3        Reviewed by David Hyatt.
     4
     5        In Qt's initializeThreading re-use an existing thread identifier for the main
     6        thread if it exists.
     7
     8        currentThread() implicitly creates new identifiers and it could be that
     9        it is called before initializeThreading().
     10
     11        * wtf/ThreadingQt.cpp:
     12        (WTF::initializeThreading):
     13
    1142008-09-27  Keishi Hattori  <[email protected]>
    215
  • trunk/JavaScriptCore/wtf/ThreadingQt.cpp

    r36763 r37040  
    128128        wtf_random_init();
    129129        QThread* mainThread = QCoreApplication::instance()->thread();
    130         mainThreadIdentifier = establishIdentifierForThread(mainThread);
     130        mainThreadIdentifier = identifierByQthreadHandle(mainThread);
     131        if (!mainThreadIdentifier)
     132            mainThreadIdentifier = establishIdentifierForThread(mainThread);
    131133        initializeMainThread();
    132134    }
Note: See TracChangeset for help on using the changeset viewer.