Ignore:
Timestamp:
Sep 21, 2008, 2:53:59 PM (17 years ago)
Author:
[email protected]
Message:

2008-09-21 Peter Gal <[email protected]>

Reviewed by Tim Hatcher and Eric Seidel.

Fix the QT/Linux JavaScriptCore segmentation fault.
https://bugs.webkit.org/show_bug.cgi?id=20914

  • wtf/ThreadingQt.cpp: (WTF::initializeThreading): Use currentThread() if platform is not a MAC (like in pre 36541 revisions)
File:
1 edited

Legend:

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

    r36541 r36745  
    3434#include "MathExtras.h"
    3535
     36#if PLATFORM(DARWIN)
    3637#include <QCoreApplication>
     38#endif
    3739#include <QMutex>
    3840#include <QThread>
     
    127129        threadMapMutex();
    128130        wtf_random_init();
     131#if PLATFORM(DARWIN)
    129132        QThread* mainThread = QCoreApplication::instance()->thread();
    130133        mainThreadIdentifier = establishIdentifierForThread(mainThread);
     134#else
     135        mainThreadIdentifier = currentThread();
     136#endif
    131137        initializeMainThread();
    132138    }
Note: See TracChangeset for help on using the changeset viewer.