[EFL] Use mutex locker in wakeUp() to ensure thread-safety.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2012 14:38:33 +0000 (14:38 +0000)
committerByungwoo Lee <bw80.lee@samsung.com>
Wed, 27 Mar 2013 03:53:26 +0000 (12:53 +0900)
commitc3fbf0afcc3a995c33a05dc5666809504fa2136a
tree14e55888ff37b89bd97fadc3b4491f9f38608642
parent4b9bed99c3d755e3b1f230b5b3d7436878515cba
[EFL] Use mutex locker in wakeUp() to ensure thread-safety.
https://bugs.webkit.org/show_bug.cgi?id=101132

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-11-28
Reviewed by Gyuyoung Kim.

Add mutex locker for the ecore pipe to ensure thread-safety of
RunLoop::wakeUp().

RunLoop::wakeUp() can be called by multiple thread. It uses
ecore_pipe_write() function but the function is not thread-safe.

* platform/RunLoop.h:
(RunLoop):
* platform/efl/RunLoopEfl.cpp:
(WebCore::RunLoop::wakeUp):

Change-Id: I36bae620af903781cdb3470888aabc434dbdb7b9
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/RunLoop.h
Source/WebCore/platform/efl/RunLoopEfl.cpp