Changeset 150068 in webkit


Ignore:
Timestamp:
May 14, 2013, 5:54:06 AM (12 years ago)
Author:
jocelyn.turcotte@digia.com
Message:

[WK2][Win] Fix ASSERT(DeleteTimerQueueTimer...)
https://bugs.webkit.org/show_bug.cgi?id=116039

Reviewed by Benjamin Poulain.

According to the documentation, DeleteTimerQueueTimer can be expected to return
false with an ERROR_IO_PENDING error when called from the timer's callback.

  • Platform/win/WorkQueueWin.cpp:

(WorkQueue::timerCallback):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r150064 r150068  
     12013-05-14  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
     2
     3        [WK2][Win] Fix ASSERT(DeleteTimerQueueTimer...)
     4        https://bugs.webkit.org/show_bug.cgi?id=116039
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        According to the documentation, DeleteTimerQueueTimer can be expected to return
     9        false with an ERROR_IO_PENDING error when called from the timer's callback.
     10
     11        * Platform/win/WorkQueueWin.cpp:
     12        (WorkQueue::timerCallback):
     13
    1142013-05-14  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/Source/WebKit2/Platform/win/WorkQueueWin.cpp

    r142002 r150068  
    228228    ASSERT(timerContext->timer);
    229229    ASSERT(timerContext->queue->m_timerQueue);
    230     if (!::DeleteTimerQueueTimer(timerContext->queue->m_timerQueue, timerContext->timer, 0))
    231         ASSERT_WITH_MESSAGE(false, "::DeleteTimerQueueTimer failed with error %lu", ::GetLastError());
     230    if (!::DeleteTimerQueueTimer(timerContext->queue->m_timerQueue, timerContext->timer, 0)) {
     231        // Getting ERROR_IO_PENDING here means that the timer will be destroyed once the callback is done executing.
     232        ASSERT_WITH_MESSAGE(::GetLastError() == ERROR_IO_PENDING, "::DeleteTimerQueueTimer failed with error %lu", ::GetLastError());
     233    }
    232234}
    233235
Note: See TracChangeset for help on using the changeset viewer.