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

Issue 10891004: Use a named mutex to avoid race conditions (Closed)

Created:
June 7, 2013, 8:05 a.m. by Felix Dahlke
Modified:
Nov. 12, 2013, 10:11 a.m.
Visibility:
Public.

Description

This is a better solution for terminating the engine if one is running already. This is the previous review: http://codereview.adblockplus.org/10809053/

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M src/engine/main.cpp View 1 chunk +8 lines, -1 line 4 comments Download
M src/shared/Communication.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/shared/Communication.cpp View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 11
Wladimir Palant
LGTM with the comment below addressed. http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp#newcode201 src/engine/main.cpp:201: } Remove the ...
June 7, 2013, 2:32 p.m. (2013-06-07 14:32:01 UTC) #1
Felix Dahlke
http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp#newcode201 src/engine/main.cpp:201: } On 2013/06/07 14:32:01, Wladimir Palant wrote: > Remove ...
June 7, 2013, 2:33 p.m. (2013-06-07 14:33:24 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp#newcode201 src/engine/main.cpp:201: } Ok, that debug message is misleading then. How ...
June 7, 2013, 2:46 p.m. (2013-06-07 14:46:45 UTC) #3
Felix Dahlke
On 2013/06/07 14:46:45, Wladimir Palant wrote: > http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp > File src/engine/main.cpp (right): > > http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp#newcode201 ...
June 7, 2013, 2:48 p.m. (2013-06-07 14:48:38 UTC) #4
Oleksandr
http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp#newcode190 src/engine/main.cpp:190: AutoHandle mutex(CreateMutexW(0, false, L"AdblockPlusEngine")); Shouldn't this be Global\AdblockPlusEngine?
June 7, 2013, 2:52 p.m. (2013-06-07 14:52:09 UTC) #5
Felix Dahlke
On 2013/06/07 14:52:09, Oleksandr wrote: > http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp > File src/engine/main.cpp (right): > > http://codereview.adblockplus.org/10891004/diff/1/src/engine/main.cpp#newcode190 > ...
June 7, 2013, 3:13 p.m. (2013-06-07 15:13:54 UTC) #6
Felix Dahlke
June 7, 2013, 3:14 p.m. (2013-06-07 15:14:02 UTC) #7
Oleksandr
On 2013/06/07 15:14:02, Felix H. Dahlke wrote: Sorry, I think Global isn't actually needed here. ...
June 7, 2013, 3:19 p.m. (2013-06-07 15:19:49 UTC) #8
Felix Dahlke
Pushed this, so it can go into the next dev build. Leaving the issue open ...
June 7, 2013, 3:40 p.m. (2013-06-07 15:40:30 UTC) #9
Felix Dahlke
Wladimir said he's fine with the two messages, closing this.
June 11, 2013, 7:04 a.m. (2013-06-11 07:04:05 UTC) #10
Wladimir Palant
June 11, 2013, 7:04 a.m. (2013-06-11 07:04:54 UTC) #11
On 2013/06/07 15:40:30, Felix H. Dahlke wrote:
> Leaving the issue open though, Wladimir didn't LGTM the latest version.

I didn't mean to revoke LGTM from the previous comment, this was merely a nit.

Powered by Google App Engine
This is Rietveld