Ignore:
Timestamp:
Jul 31, 2008, 1:44:58 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Alexey Proskuryakov.

Rename USE(MULTIPLE_THREADS) to ENABLE(JSC_MULTIPLE_THREADS)
to better match the use/enable pattern (and better describe
the usage of the feature in question.)

I also fixed a couple other ENABLE_ macros to be pre-processor
definition override-able to match the rest of the ENABLE_ macros
since it seems to be our convention that build systems can set
ENABLE_ macros in Makefiles.

  • kjs/InitializeThreading.cpp: (KJS::initializeThreadingOnce):
  • kjs/JSGlobalData.cpp: (KJS::JSGlobalData::JSGlobalData): (KJS::JSGlobalData::~JSGlobalData):
  • kjs/MathObject.cpp:
  • kjs/collector.cpp: (KJS::Heap::Heap): (KJS::Heap::~Heap): (KJS::allocateBlock): (KJS::Heap::markStackObjectsConservatively):
  • kjs/collector.h:
  • kjs/dtoa.cpp: (KJS::pow5mult): (KJS::rv_alloc): (KJS::freedtoa): (KJS::dtoa):
  • wtf/FastMalloc.cpp:
  • wtf/Platform.h:
  • wtf/RefCountedLeakCounter.cpp:
File:
1 edited

Legend:

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

    r35055 r35476  
    7979
    8080#include "Assertions.h"
    81 #if USE(MULTIPLE_THREADS)
     81#if USE(PTHREADS)
    8282#include <pthread.h>
    8383#endif
     
    100100namespace WTF {
    101101
    102 #if USE(MULTIPLE_THREADS)
     102#if ENABLE(JSC_MULTIPLE_THREADS)
    103103static pthread_key_t isForbiddenKey;
    104104static pthread_once_t isForbiddenKeyOnce = PTHREAD_ONCE_INIT;
     
    143143    staticIsForbidden = false;
    144144}
    145 #endif // USE(MULTIPLE_THREADS)
     145#endif // ENABLE(JSC_MULTIPLE_THREADS)
    146146
    147147} // namespace WTF
Note: See TracChangeset for help on using the changeset viewer.