Changeset 187988 in webkit


Ignore:
Timestamp:
Aug 5, 2015 2:42:45 PM (9 years ago)
Author:
fpizlo@apple.com
Message:

Unreviewed, fix Windows.

  • wtf/ThreadSpecificWin.cpp:

(WTF::destructorsList):
(WTF::destructorsMutex):
(WTF::threadSpecificKeyCreate):
(WTF::threadSpecificKeyDelete):
(WTF::ThreadSpecificThreadExit):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r187972 r187988  
     12015-08-05  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Unreviewed, fix Windows.
     4
     5        * wtf/ThreadSpecificWin.cpp:
     6        (WTF::destructorsList):
     7        (WTF::destructorsMutex):
     8        (WTF::threadSpecificKeyCreate):
     9        (WTF::threadSpecificKeyDelete):
     10        (WTF::ThreadSpecificThreadExit):
     11
    1122015-08-04  Filip Pizlo  <fpizlo@apple.com>
    213
  • trunk/Source/WTF/wtf/ThreadSpecificWin.cpp

    r148490 r187988  
    3939}
    4040
    41 static Mutex& destructorsMutex()
     41static DeprecatedMutex& destructorsMutex()
    4242{
    43     static Mutex staticMutex;
     43    static DeprecatedMutex staticMutex;
    4444    return staticMutex;
    4545}
     
    9696    new (*key) PlatformThreadSpecificKey(destructor);
    9797
    98     MutexLocker locker(destructorsMutex());
     98    DeprecatedMutexLocker locker(destructorsMutex());
    9999    destructorsList().push(*key);
    100100}
     
    102102void threadSpecificKeyDelete(ThreadSpecificKey key)
    103103{
    104     MutexLocker locker(destructorsMutex());
     104    DeprecatedMutexLocker locker(destructorsMutex());
    105105    destructorsList().remove(key);
    106106    key->~PlatformThreadSpecificKey();
     
    127127    }
    128128
    129     MutexLocker locker(destructorsMutex());
     129    DeprecatedMutexLocker locker(destructorsMutex());
    130130    PlatformThreadSpecificKey* key = destructorsList().head();
    131131    while (key) {
Note: See TracChangeset for help on using the changeset viewer.