Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29369479: Issue #4694 - Add mutex protection to JS event handling

Created:
Dec. 21, 2016, 7:17 p.m. by Eric
Modified:
March 30, 2017, 1:11 p.m.
Reviewers:
sergei, Felix Dahlke
Visibility:
Public.

Description

Issue #4694 - Add mutex protection to JS event handling Encapsulate event map in a new class `EventManager`, which also contains a mutex to eliminate data races on the map. Forward the event management methods in `JsEngine` to corresponding methods on the internal manager instance.

Patch Set 1 : #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -7 lines) Patch
M include/AdblockPlus/JsEngine.h View 3 chunks +11 lines, -1 line 0 comments Download
M libadblockplus.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A src/Event.h View 1 chunk +80 lines, -0 lines 10 comments Download
A src/Event.cpp View 1 chunk +52 lines, -0 lines 3 comments Download
M src/JsEngine.cpp View 2 chunks +9 lines, -6 lines 0 comments Download
M src/JsEngineInternal.h View 2 chunks +11 lines, -0 lines 1 comment Download

Messages

Total messages: 5
Eric
This change set does not change the binding of "_triggerEvent" on the global object. For ...
Dec. 21, 2016, 7:39 p.m. (2016-12-21 19:39:13 UTC) #1
sergei
Could you please rebase it on current master? It's already required for android. https://codereview.adblockplus.org/29369479/diff/29369487/src/Event.cpp File ...
March 15, 2017, 12:17 p.m. (2017-03-15 12:17:21 UTC) #2
Eric
On 2017/03/15 12:17:21, sergei wrote: > Could you please rebase it on current master? It's ...
March 29, 2017, 6:25 p.m. (2017-03-29 18:25:01 UTC) #3
sergei
On 2017/03/29 18:25:01, Eric wrote: > On 2017/03/15 12:17:21, sergei wrote: > > Could you ...
March 30, 2017, 12:56 p.m. (2017-03-30 12:56:14 UTC) #4
Eric
March 30, 2017, 1:11 p.m. (2017-03-30 13:11:18 UTC) #5
On 2017/03/30 12:56:14, sergei wrote:
> I think that there is actually no necessity to rebase the whole branch, we
just
> need to pick only required functionality from it.

If it didn't depend on code that was in the prior commits, then it wouldn't be
necessary to rebase the branch.

What you're asking for is a rewrite, not a rebase.

Next time don't wait three months.

Powered by Google App Engine
This is Rietveld