Ignore:
Timestamp:
Feb 15, 2011, 11:52:49 AM (14 years ago)
Author:
[email protected]
Message:

2011-02-15 Chris Rogers <[email protected]>

Reviewed by Alexey Proskuryakov.

Fix Mutex::tryLock() on Windows to work properly with PlatformCondition::timedWait()
https://bugs.webkit.org/show_bug.cgi?id=54408

  • wtf/ThreadingWin.cpp: (WTF::PlatformCondition::timedWait):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/ThreadingWin.cpp

    r77242 r78597  
    333333    ASSERT(res);
    334334
     335    --mutex.m_recursionCount;
    335336    LeaveCriticalSection(&mutex.m_internalMutex);
    336337
     
    366367
    367368    EnterCriticalSection (&mutex.m_internalMutex);
     369    ++mutex.m_recursionCount;
    368370
    369371    return !timedOut;
Note: See TracChangeset for help on using the changeset viewer.