⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 130622 in webkit


Ignore:
Timestamp:
Oct 8, 2012, 1:06:50 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r130619.
​http://trac.webkit.org/changeset/130619
​https://bugs.webkit.org/show_bug.cgi?id=98634

Causes many crashes on the EFL bots. (Requested by rakuco on
#webkit).

Patch by Sheriff Bot <​webkit.review.bot@gmail.com> on 2012-10-08

Source/WebCore:

  • platform/RunLoop.h:

(RunLoop):

  • platform/efl/RunLoopEfl.cpp:

(WebCore::RunLoop::RunLoop):
(WebCore::RunLoop::wakeUpEvent):
(WebCore::RunLoop::wakeUp):

Source/WTF:

  • wtf/efl/MainThreadEfl.cpp:

(WTF::pipeObject):
(WTF):
(WTF::monitorDispatchFunctions):
(WTF::initializeMainThreadPlatform):
(WTF::scheduleDispatchFunctionsOnMainThread):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r130619 r130622  
     12012-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r130619.
     4        http://trac.webkit.org/changeset/130619
     5        https://bugs.webkit.org/show_bug.cgi?id=98634
     6
     7        Causes many crashes on the EFL bots. (Requested by rakuco on
     8        #webkit).
     9
     10        * wtf/efl/MainThreadEfl.cpp:
     11        (WTF::pipeObject):
     12        (WTF):
     13        (WTF::monitorDispatchFunctions):
     14        (WTF::initializeMainThreadPlatform):
     15        (WTF::scheduleDispatchFunctionsOnMainThread):
     16
    1172012-10-08  Byungwoo Lee  <bw80.lee@samsung.com>
    218
  • trunk/Source/WTF/wtf/efl/MainThreadEfl.cpp

    r130619 r130622  
    4242namespace WTF {
    4343
    44 static void monitorDispatchFunctions(void*)
     44static OwnPtr<Ecore_Pipe>& pipeObject()
     45{
     46    DEFINE_STATIC_LOCAL(OwnPtr<Ecore_Pipe>, pipeObject, ());
     47    return pipeObject;
     48}
     49
     50static void monitorDispatchFunctions(void*, void*, unsigned int)
    4551{
    4652    dispatchFunctionsFromMainThread();
    … …  
    4955void initializeMainThreadPlatform()
    5056{
     57    pipeObject() = adoptPtr(ecore_pipe_add(monitorDispatchFunctions, 0));
    5158}
    5259
    5360void scheduleDispatchFunctionsOnMainThread()
    5461{
    55     ecore_main_loop_thread_safe_call_async(monitorDispatchFunctions, 0);
     62    ecore_pipe_write(pipeObject().get(), "", 0);
    5663}
    5764
  • trunk/Source/WebCore/ChangeLog

    r130619 r130622  
     12012-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r130619.
     4        http://trac.webkit.org/changeset/130619
     5        https://bugs.webkit.org/show_bug.cgi?id=98634
     6
     7        Causes many crashes on the EFL bots. (Requested by rakuco on
     8        #webkit).
     9
     10        * platform/RunLoop.h:
     11        (RunLoop):
     12        * platform/efl/RunLoopEfl.cpp:
     13        (WebCore::RunLoop::RunLoop):
     14        (WebCore::RunLoop::wakeUpEvent):
     15        (WebCore::RunLoop::wakeUp):
     16
    1172012-10-08  Byungwoo Lee  <bw80.lee@samsung.com>
    218
  • trunk/Source/WebCore/platform/RunLoop.h

    r130619 r130622  
    168168#elif PLATFORM(EFL)
    169169    bool m_initEfl;
    170     static void wakeUpEvent(void* data);
     170    OwnPtr<Ecore_Pipe> m_pipe;
     171    static void wakeUpEvent(void* data, void*, unsigned int);
    171172#endif
    172173};
  • trunk/Source/WebCore/platform/efl/RunLoopEfl.cpp

    r130619 r130622  
    3535#include <wtf/PassOwnPtr.h>
    3636
     37static const int ecorePipeMessageSize = 1;
     38static const char wakupEcorePipeMessage[] = "W";
     39
    3740namespace WebCore {
    3841
    … …  
    6063    }
    6164
     65    m_pipe = adoptPtr(ecore_pipe_add(wakeUpEvent, this));
    6266    m_initEfl = true;
    6367
    … …  
    9296}
    9397
    94 void RunLoop::wakeUpEvent(void* data)
     98void RunLoop::wakeUpEvent(void* data, void*, unsigned int)
    9599{
    96100    static_cast<RunLoop*>(data)->performWork();
    … …  
    99103void RunLoop::wakeUp()
    100104{
    101     ecore_main_loop_thread_safe_call_async(wakeUpEvent, this);
     105    ecore_pipe_write(m_pipe.get(), wakupEcorePipeMessage, ecorePipeMessageSize);
    102106}
    103107
Note: See TracChangeset for help on using the changeset viewer.