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

Issue 29404610: Noissue - release mutex before call of notify_one (Closed)

Created:
April 6, 2017, 2:05 p.m. by sergei
Modified:
April 6, 2017, 4:45 p.m.
Reviewers:
hub
CC:
Felix Dahlke, Oleksandr, Eric
Visibility:
Public.

Description

It makes no sense to keep this mutex acquired because std::condition_variable does not require it and it can cause unnecessary waiting in the worker thread, namely that thread can wake up and be immediately blocked on the mutex which is not released yet. https://codereview.adblockplus.org/29404610/

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M src/DefaultTimer.cpp View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 2
sergei
April 6, 2017, 2:06 p.m. (2017-04-06 14:06:50 UTC) #1
hub
April 6, 2017, 3:12 p.m. (2017-04-06 15:12:02 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld