Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Issue 2125113003: Implement SequencedTaskChecker. (Closed)

Created:
4 years, 5 months ago by perkj_webrtc
Modified:
4 years, 5 months ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Implement SequencedTaskChecker. SequencedTaskChecker is a helper class used to help verify that some methods of a class are called on the same task queue or thread. A SequencedTaskChecker is bound to a a task queue if the object is created on a task queue, or a thread otherwise. BUG=webrtc:5687 Committed: https://crrev.com/9c16fe84b99d5c2aca6109aab6bcb1d11b8f88b5 Cr-Commit-Position: refs/heads/master@{#13452}

Patch Set 1 #

Total comments: 30

Patch Set 2 : Addressed comments. Rewrote tests. #

Total comments: 20

Patch Set 3 : Self review. #

Patch Set 4 : Fix include. #

Patch Set 5 : Added support for annotations and fixed tommis review comments. #

Total comments: 7

Patch Set 6 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -0 lines) Patch
M webrtc/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/base/base.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
A webrtc/base/sequenced_task_checker.h View 1 2 3 4 1 chunk +87 lines, -0 lines 0 comments Download
A webrtc/base/sequenced_task_checker_impl.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A webrtc/base/sequenced_task_checker_impl.cc View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A webrtc/base/sequenced_task_checker_unittest.cc View 1 2 3 4 5 1 chunk +273 lines, -0 lines 0 comments Download
M webrtc/webrtc_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
perkj_webrtc
please?
4 years, 5 months ago (2016-07-07 12:13:10 UTC) #2
tommi
https://codereview.webrtc.org/2125113003/diff/1/webrtc/base/sequenced_task_checker.h File webrtc/base/sequenced_task_checker.h (right): https://codereview.webrtc.org/2125113003/diff/1/webrtc/base/sequenced_task_checker.h#newcode41 webrtc/base/sequenced_task_checker.h:41: bool IsCurrent() const { return true; } CalledSequentially? I'm ...
4 years, 5 months ago (2016-07-08 13:15:16 UTC) #3
perkj_webrtc
ptal https://codereview.webrtc.org/2125113003/diff/1/webrtc/base/sequenced_task_checker.h File webrtc/base/sequenced_task_checker.h (right): https://codereview.webrtc.org/2125113003/diff/1/webrtc/base/sequenced_task_checker.h#newcode41 webrtc/base/sequenced_task_checker.h:41: bool IsCurrent() const { return true; } On ...
4 years, 5 months ago (2016-07-11 08:38:01 UTC) #4
tommi
the below comments are for a slightly older patch set than the latest one, but ...
4 years, 5 months ago (2016-07-12 13:08:57 UTC) #5
pbos-webrtc
On 2016/07/12 13:08:57, tommi-webrtc wrote: > the below comments are for a slightly older patch ...
4 years, 5 months ago (2016-07-12 13:24:29 UTC) #6
perkj_webrtc
ptal https://codereview.webrtc.org/2125113003/diff/20001/webrtc/base/sequenced_task_checker_unittest.cc File webrtc/base/sequenced_task_checker_unittest.cc (right): https://codereview.webrtc.org/2125113003/diff/20001/webrtc/base/sequenced_task_checker_unittest.cc#newcode26 webrtc/base/sequenced_task_checker_unittest.cc:26: class CallDoStuffOnThread : public PlatformThread { On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 15:22:00 UTC) #8
tommi
https://codereview.webrtc.org/2125113003/diff/100001/webrtc/base/sequenced_task_checker_unittest.cc File webrtc/base/sequenced_task_checker_unittest.cc (right): https://codereview.webrtc.org/2125113003/diff/100001/webrtc/base/sequenced_task_checker_unittest.cc#newcode29 webrtc/base/sequenced_task_checker_unittest.cc:29: thread_.Stop(); call Stop() in the dtor? (same below) How ...
4 years, 5 months ago (2016-07-12 17:19:23 UTC) #9
perkj_webrtc
ptal https://codereview.webrtc.org/2125113003/diff/100001/webrtc/base/sequenced_task_checker_unittest.cc File webrtc/base/sequenced_task_checker_unittest.cc (right): https://codereview.webrtc.org/2125113003/diff/100001/webrtc/base/sequenced_task_checker_unittest.cc#newcode29 webrtc/base/sequenced_task_checker_unittest.cc:29: thread_.Stop(); On 2016/07/12 17:19:23, tommi-webrtc wrote: > call ...
4 years, 5 months ago (2016-07-12 20:50:57 UTC) #10
tommi
lgtm. See below for Start/Run/Stop. https://codereview.webrtc.org/2125113003/diff/100001/webrtc/base/sequenced_task_checker_unittest.cc File webrtc/base/sequenced_task_checker_unittest.cc (right): https://codereview.webrtc.org/2125113003/diff/100001/webrtc/base/sequenced_task_checker_unittest.cc#newcode29 webrtc/base/sequenced_task_checker_unittest.cc:29: thread_.Stop(); On 2016/07/12 20:50:57, ...
4 years, 5 months ago (2016-07-12 21:11:06 UTC) #11
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/2125113003/120001
4 years, 5 months ago (2016-07-12 21:20:18 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 5 months ago (2016-07-12 22:04:14 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-12 22:04:16 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-12 22:04:21 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9c16fe84b99d5c2aca6109aab6bcb1d11b8f88b5
Cr-Commit-Position: refs/heads/master@{#13452}

Powered by Google App Engine
This is Rietveld 408576698