Changeset 32949 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
May 7, 2008, 2:37:13 AM (17 years ago)
Author:
Simon Hausmann
Message:

2008-05-07 Ariya Hidayat <[email protected]>

Reviewed by Simon.

Support for isMainThread in the Qt port.

  • wtf/ThreadingQt.cpp: (WTF::initializeThreading): Adjusted. (WTF::isMainThread): Added.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r32877 r32949  
     12008-05-07  Ariya Hidayat  <[email protected]>
     2
     3        Reviewed by Simon.
     4
     5        Support for isMainThread in the Qt port.
     6
     7        * wtf/ThreadingQt.cpp:
     8        (WTF::initializeThreading): Adjusted.
     9        (WTF::isMainThread): Added.
     10
    1112008-05-05  Darin Adler  <[email protected]>
    212
  • trunk/JavaScriptCore/wtf/ThreadingQt.cpp

    r32477 r32949  
    6565Mutex* atomicallyInitializedStaticMutex;
    6666
     67static ThreadIdentifier mainThreadIdentifier;
     68
    6769static Mutex& threadMapMutex()
    6870{
     
    123125        threadMapMutex();
    124126        wtf_random_init();
     127        mainThreadIdentifier = currentThread();
    125128    }
    126129}
     
    166169}
    167170
     171bool isMainThread()
     172{
     173    return currentThread() == mainThreadIdentifier;
     174}
     175
    168176Mutex::Mutex()
    169177    : m_mutex(new QMutex())
Note: See TracChangeset for help on using the changeset viewer.