Ignore:
Timestamp:
Sep 9, 2011, 5:05:28 PM (14 years ago)
Author:
[email protected]
Message:

2011-09-09 Geoffrey Garen <[email protected]>

Reviewed by Dan Bernstein.

Removed ENABLE(SINGLE_THREADED) support, since it is always false
https://bugs.webkit.org/show_bug.cgi?id=67862

Next step toward making the baseline platform assumption that threads exist.

  • wtf/wtf.pri:
  • JavaScriptCore.gypi:
  • JavaScriptCore.vcproj/WTF/WTF.vcproj: Removed references to ThreadingNone.cpp, which was only compiled in single-threaded mode.
  • wtf/Platform.h:
  • wtf/ThreadSpecific.h: (WTF::::destroy):
  • wtf/qt/ThreadingQt.cpp: Removed now-dead code.
  • wtf/ThreadingNone.cpp: Removed.

2011-09-09 Geoffrey Garen <[email protected]>

Reviewed by Dan Bernstein.

Removed ENABLE(SINGLE_THREADED) support, since it is always false
https://bugs.webkit.org/show_bug.cgi?id=67862

Next step toward making the baseline platform assumption that threads exist.

  • WebCore.pri:
  • features.pri:
  • platform/sql/SQLiteDatabase.cpp: (WebCore::SQLiteDatabase::interrupt): Removed now-dead code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/ThreadSpecific.h

    r76248 r94890  
    102102#endif
    103103
    104 #if ENABLE(SINGLE_THREADED)
    105     T* m_value;
    106 #else
    107104#if USE(PTHREADS)
    108105    pthread_key_t m_key;
     
    114111    int m_index;
    115112#endif
    116 #endif
    117113};
    118114
    119 #if ENABLE(SINGLE_THREADED)
    120 template<typename T>
    121 inline ThreadSpecific<T>::ThreadSpecific()
    122     : m_value(0)
    123 {
    124 }
    125 
    126 template<typename T>
    127 inline T* ThreadSpecific<T>::get()
    128 {
    129     return m_value;
    130 }
    131 
    132 template<typename T>
    133 inline void ThreadSpecific<T>::set(T* ptr)
    134 {
    135     ASSERT(!get());
    136     m_value = ptr;
    137 }
    138 #else
    139115#if USE(PTHREADS)
    140116template<typename T>
     
    260236#error ThreadSpecific is not implemented for this platform.
    261237#endif
    262 #endif
    263238
    264239template<typename T>
    265240inline void ThreadSpecific<T>::destroy(void* ptr)
    266241{
    267 #if !ENABLE(SINGLE_THREADED)
    268242    Data* data = static_cast<Data*>(ptr);
    269243
     
    298272#if !PLATFORM(QT)
    299273    delete data;
    300 #endif
    301274#endif
    302275}
Note: See TracChangeset for help on using the changeset viewer.