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

Issue 2464383002: Use queue label as id in SequencedTaskChecker when not running on TaskQueue (Closed)

Created:
4 years, 1 month ago by kthelgason
Modified:
4 years, 1 month ago
Reviewers:
magjed_webrtc, tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use queue label as id in SequencedTaskChecker when not running on TaskQueue This is intended to make SequencedTaskChecker work for native dispatch queues on iOS and macOS. These labels can be compared by their pointers to determine if a task is running on the same queue. BUG=webrtc:6643 Committed: https://crrev.com/44e0efe0e67797702c0a71e3798d2d2c047f1368 Cr-Commit-Position: refs/heads/master@{#14900}

Patch Set 1 #

Total comments: 8

Patch Set 2 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M webrtc/base/sequenced_task_checker_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/base/sequenced_task_checker_impl.cc View 1 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
kthelgason
4 years, 1 month ago (2016-11-02 11:42:08 UTC) #2
magjed_webrtc
Perfect! This is exactly what I wanted and the implementation is very clean. https://codereview.webrtc.org/2464383002/diff/1/webrtc/base/sequenced_task_checker_impl.cc File ...
4 years, 1 month ago (2016-11-02 12:04:41 UTC) #7
magjed_webrtc
Oh, lgtm.
4 years, 1 month ago (2016-11-02 12:04:51 UTC) #8
tommi
lgtm with comments addressed. btw, following up on our discussion earlier today I dug through ...
4 years, 1 month ago (2016-11-02 16:32:50 UTC) #9
kthelgason
https://codereview.webrtc.org/2464383002/diff/1/webrtc/base/sequenced_task_checker_impl.cc File webrtc/base/sequenced_task_checker_impl.cc (right): https://codereview.webrtc.org/2464383002/diff/1/webrtc/base/sequenced_task_checker_impl.cc#newcode28 webrtc/base/sequenced_task_checker_impl.cc:28: // If we're not running on a TaskQueue, use ...
4 years, 1 month ago (2016-11-02 16:53:55 UTC) #10
kthelgason
On 2016/11/02 16:32:50, tommi (webrtc) wrote: > btw, following up on our discussion earlier today ...
4 years, 1 month ago (2016-11-02 16:58:15 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/2464383002/20001
4 years, 1 month ago (2016-11-02 16:58:50 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-02 17:28:22 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/44e0efe0e67797702c0a71e3798d2d2c047f1368 Cr-Commit-Position: refs/heads/master@{#14900}
4 years, 1 month ago (2016-11-02 17:52:02 UTC) #17
tommi
4 years, 1 month ago (2016-11-02 19:50:44 UTC) #18
Message was sent while issue was closed.
On 2016/11/02 16:58:15, kthelgason wrote:
> On 2016/11/02 16:32:50, tommi (webrtc) wrote:
> > btw, following up on our discussion earlier today I dug through the docs a
> > little and found that for TaskQueue, we can improve the Current()
> > implementation. Instead of using Tls as we're doing now, we can use GCD's
> > get/set specific APIs.  Those APIs are GCD equivalents of the pthread APIs
> with
> > similar names.
> 
> I knew about those APIs, in fact I had an implementation pretty much finished
> before I realised that would not help in this case. After our discussion I saw
> no reason to continue down that path.

Great. I guess it'll just make things a little neater.

Powered by Google App Engine
This is Rietveld 408576698