Chromium Code Reviews

Issue 2733723002: Refactor Windows TaskQueue code to only need a single high res timer. (Closed)

Created:
3 years, 9 months ago by tommi
Modified:
3 years, 9 months ago
Reviewers:
the sun
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Refactor Windows TaskQueue code to only need a single high res timer. BUG=webrtc:7151 Review-Url: https://codereview.webrtc.org/2733723002 Cr-Commit-Position: refs/heads/master@{#17170} Committed: https://chromium.googlesource.com/external/webrtc/+/0b942150d35c58bab4efe6dc389489e01f3126a8

Patch Set 1 #

Patch Set 2 : Updates #

Patch Set 3 : Update comments #

Patch Set 4 : Make sure timers are cancelled before rescheduling #

Patch Set 5 : Change the PostMultipleDelayed test to fire tasks targeted at different intervals #

Total comments: 17

Patch Set 6 : Switch over to priority_queue #

Patch Set 7 : Address other comments #

Total comments: 6

Patch Set 8 : Address comments and fix order in priority queue #

Patch Set 9 : Rebase #

Patch Set 10 : use greater<> and not greater_or_equal #

Unified diffs Side-by-side diffs Stats (+203 lines, -178 lines)
M webrtc/base/task_queue.h View 2 chunks +1 line, -6 lines 0 comments
M webrtc/base/task_queue_unittest.cc View 4 chunks +48 lines, -1 line 0 comments
M webrtc/base/task_queue_win.cc View 6 chunks +154 lines, -171 lines 0 comments

Messages

Total messages: 41 (24 generated)
tommi
Updates
3 years, 9 months ago (2017-03-05 16:23:26 UTC) #1
tommi
Update comments
3 years, 9 months ago (2017-03-05 16:27:46 UTC) #4
tommi
Make sure timers are cancelled before rescheduling
3 years, 9 months ago (2017-03-05 17:26:49 UTC) #5
tommi
Change the PostMultipleDelayed test to fire tasks targeted at different intervals
3 years, 9 months ago (2017-03-05 17:37:33 UTC) #9
tommi
Hej Fredrik - ptal. The windows multimedia timer code strikes again.
3 years, 9 months ago (2017-03-05 17:58:23 UTC) #11
the sun
lg - spotted one thing that seems wrong, the rest are just nits. https://codereview.webrtc.org/2733723002/diff/80001/webrtc/base/task_queue.h File ...
3 years, 9 months ago (2017-03-07 11:24:25 UTC) #12
tommi
Switch over to priority_queue
3 years, 9 months ago (2017-03-09 20:14:23 UTC) #13
tommi
Address other comments
3 years, 9 months ago (2017-03-09 20:26:33 UTC) #16
tommi
https://codereview.webrtc.org/2733723002/diff/80001/webrtc/base/task_queue.h File webrtc/base/task_queue.h (right): https://codereview.webrtc.org/2733723002/diff/80001/webrtc/base/task_queue.h#newcode16 webrtc/base/task_queue.h:16: #include <vector> On 2017/03/07 11:24:24, the sun wrote: > ...
3 years, 9 months ago (2017-03-09 20:27:43 UTC) #17
tommi
https://codereview.webrtc.org/2733723002/diff/80001/webrtc/base/task_queue_win.cc File webrtc/base/task_queue_win.cc (right): https://codereview.webrtc.org/2733723002/diff/80001/webrtc/base/task_queue_win.cc#newcode84 webrtc/base/task_queue_win.cc:84: DelayedTaskInfo(DelayedTaskInfo&&) = default; On 2017/03/09 20:27:42, tommi (webrtc) wrote: ...
3 years, 9 months ago (2017-03-09 20:29:08 UTC) #18
the sun
LGTM! https://codereview.webrtc.org/2733723002/diff/120001/webrtc/base/task_queue_win.cc File webrtc/base/task_queue_win.cc (right): https://codereview.webrtc.org/2733723002/diff/120001/webrtc/base/task_queue_win.cc#newcode88 webrtc/base/task_queue_win.cc:88: // Implement for <set> to maintain an order ...
3 years, 9 months ago (2017-03-10 11:48:02 UTC) #19
tommi
Address comments and fix order in priority queue
3 years, 9 months ago (2017-03-10 15:58:22 UTC) #20
tommi
https://codereview.webrtc.org/2733723002/diff/120001/webrtc/base/task_queue_win.cc File webrtc/base/task_queue_win.cc (right): https://codereview.webrtc.org/2733723002/diff/120001/webrtc/base/task_queue_win.cc#newcode88 webrtc/base/task_queue_win.cc:88: // Implement for <set> to maintain an order of ...
3 years, 9 months ago (2017-03-10 15:58:50 UTC) #23
tommi
Rebase
3 years, 9 months ago (2017-03-10 16:43:54 UTC) #26
tommi
use greater<> and not greater_or_equal
3 years, 9 months ago (2017-03-10 17:01:56 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2733723002/180001
3 years, 9 months ago (2017-03-10 17:23:14 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 17:33:57 UTC) #41
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/external/webrtc/+/0b942150d35c58bab4efe6dc3...

Powered by Google App Engine