Changeset 40811 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Feb 10, 2009, 12:26:16 AM (16 years ago)
Author:
[email protected]
Message:

2009-02-09 John Grabowski <[email protected]>

Reviewed by Darin Adler.

  • wtf/ThreadingPthreads.cpp: (WTF::initializeThreading): (WTF::isMainThread):
File:
1 edited

Legend:

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

    r40608 r40811  
    4949static Mutex* atomicallyInitializedStaticMutex;
    5050
    51 #if !PLATFORM(DARWIN)
     51#if !PLATFORM(DARWIN) || PLATFORM(CHROMIUM)
    5252static ThreadIdentifier mainThreadIdentifier; // The thread that was the first to call initializeThreading(), which must be the main thread.
    5353#endif
     
    6565        threadMapMutex();
    6666        initializeRandomNumberGenerator();
    67 #if !PLATFORM(DARWIN)
     67#if !PLATFORM(DARWIN) || PLATFORM(CHROMIUM)
    6868        mainThreadIdentifier = currentThread();
    6969#endif
     
    177177bool isMainThread()
    178178{
    179 #if PLATFORM(DARWIN)
     179#if PLATFORM(DARWIN) && !PLATFORM(CHROMIUM)
    180180    return pthread_main_np();
    181181#else
Note: See TracChangeset for help on using the changeset viewer.