Changeset 142009 in webkit


Ignore:
Timestamp:
Feb 6, 2013 10:54:06 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Assertion failure on MiniBrowser exit
https://bugs.webkit.org/show_bug.cgi?id=108932

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2013-02-06
Reviewed by Anders Carlsson.

WorkQueue is now refcounted after r141497, so increase ref
count when a new job is scheduled and unref it when it finishes.

  • Platform/efl/WorkQueueEfl.cpp:

(WorkQueue::performWork):
(WorkQueue::performTimerWork):
(WorkQueue::dispatch):
(WorkQueue::dispatchAfterDelay):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r142002 r142009  
     12013-02-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
     2
     3        [EFL][WK2] Assertion failure on MiniBrowser exit
     4        https://bugs.webkit.org/show_bug.cgi?id=108932
     5
     6        Reviewed by Anders Carlsson.
     7
     8        WorkQueue is now refcounted after r141497, so increase ref
     9        count when a new job is scheduled and unref it when it finishes.
     10
     11        * Platform/efl/WorkQueueEfl.cpp:
     12        (WorkQueue::performWork):
     13        (WorkQueue::performTimerWork):
     14        (WorkQueue::dispatch):
     15        (WorkQueue::dispatchAfterDelay):
     16
    1172013-02-06  Simon Hausmann  <simon.hausmann@digia.com>, Zoltan Arvai  <zarvai@inf.u-szeged.hu>
    218
  • trunk/Source/WebKit2/Platform/efl/WorkQueueEfl.cpp

    r133307 r142009  
    8080        }
    8181
    82         for (size_t i = 0; i < workItemQueue.size(); ++i)
     82        for (size_t i = 0; i < workItemQueue.size(); ++i) {
    8383            workItemQueue[i]();
     84            deref();
     85        }
    8486    }
    8587}
     
    163165        // If a timer work item expired, dispatch the function of the work item.
    164166        timerWorkItems[i]->dispatch();
     167        deref();
    165168    }
    166169}
     
    211214void WorkQueue::dispatch(const Function<void()>& function)
    212215{
     216    ref();
     217
    213218    {
    214219        MutexLocker locker(m_workItemQueueLock);
     
    228233        return;
    229234
     235    ref();
    230236    insertTimerWorkItem(timerWorkItem.release());
    231237    sendMessageToThread(wakupThreadMessage);
Note: See TracChangeset for help on using the changeset viewer.