Changeset 69935 in webkit


Ignore:
Timestamp:
Oct 17, 2010 5:04:27 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-17 Hyung Song <beergun@company100.net>

Reviewed by David Levin.

Add !SINGLE_THREADED guard.
https://bugs.webkit.org/show_bug.cgi?id=47608

For SINGLE_THREADED ports LockingMutex.tryLock() returns false.
This will prevent interrupt() from falling into infinite loop.

  • platform/sql/SQLiteDatabase.cpp: (WebCore::SQLiteDatabase::interrupt):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69928 r69935  
     12010-10-17  Hyung Song  <beergun@company100.net>
     2
     3        Reviewed by David Levin.
     4
     5        Add !SINGLE_THREADED guard.
     6        https://bugs.webkit.org/show_bug.cgi?id=47608
     7
     8        For SINGLE_THREADED ports LockingMutex.tryLock() returns false.
     9        This will prevent interrupt() from falling into infinite loop.
     10
     11        * platform/sql/SQLiteDatabase.cpp:
     12        (WebCore::SQLiteDatabase::interrupt):
     13
    1142010-10-17  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/WebCore/platform/sql/SQLiteDatabase.cpp

    r69798 r69935  
    102102void SQLiteDatabase::interrupt()
    103103{
     104#if !ENABLE(SINGLE_THREADED)
    104105    m_interrupted = true;
    105106    while (!m_lockingMutex.tryLock()) {
     
    112113
    113114    m_lockingMutex.unlock();
     115#endif
    114116}
    115117
Note: See TracChangeset for help on using the changeset viewer.