webrtc/api/task_queue
Henrik Boström b951dc6f4c Allow specifying delayed task precision of dcsctp::Timer.
Context: The timer precision of PostDelayedTask() is about to be lowered
to include up to 17 ms leeway. In order not to break use cases that
require high precision timers, PostDelayedHighPrecisionTask() will
continue to have the same precision that PostDelayedTask() has today.
webrtc::TaskQueueBase has an enum (kLow, kHigh) to decide which
precision to use when calling PostDelayedTaskWithPrecision().

See go/postdelayedtask-precision-in-webrtc for motivation and a table of
delayed task use cases in WebRTC that are "high" or "low" precision.

Most timers in DCSCTP are believed to only be needing low precision (see
table), but the delayed_ack_timer_ of DataTracker[1] is an example of a
use case that is likely to break if the timer precision is lowered (if
ACK is sent too late, retransmissions may occur). So this is considered
a high precision use case.

This CL makes it possible to specify the precision of dcsctp::Timer.
In a follow-up CL we will update delayed_ack_timer_ to kHigh precision.

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/net/dcsctp/rx/data_tracker.cc;l=340

Bug: webrtc:13604
Change-Id: I8eec5ce37044096978b5dd1985fbb00bc0d8fb7e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249081
Reviewed-by: Victor Boivie <boivie@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35809}
2022-01-26 18:40:24 +00:00
..
test Allow specifying delayed task precision of dcsctp::Timer. 2022-01-26 18:40:24 +00:00
BUILD.gn Use absl_deps in order to preapre to the Abseil component build release. 2020-06-08 12:59:40 +00:00
default_task_queue_factory.h Introduce global task queue factory. 2019-01-18 11:25:15 +00:00
default_task_queue_factory_gcd.cc Migrate gcd task queue implementation to TaskQueueBase interface 2019-02-20 17:08:53 +00:00
default_task_queue_factory_libevent.cc Migrate libevent task queue implementation to TaskQueueBase interface 2019-02-12 10:58:36 +00:00
default_task_queue_factory_stdlib.cc Migrate stdlib task queue to TaskQueueBase interface 2019-02-21 14:36:07 +00:00
default_task_queue_factory_unittest.cc Test default TaskQueue implementation via TaskQueueBase interface 2019-02-26 14:01:45 +00:00
default_task_queue_factory_win.cc Migrate win task queue to TaskQueueBase interface 2019-02-21 09:33:42 +00:00
DEPS Migrate RepeatingTask to take raw pointer to TaskQueueBase instead of TaskQueue 2019-03-06 18:44:35 +00:00
queued_task.h Use backticks not vertical bars to denote variables in comments for /api 2021-07-26 18:27:34 +00:00
task_queue_base.cc Migrate gcd task queue implementation to TaskQueueBase interface 2019-02-20 17:08:53 +00:00
task_queue_base.h Add ability to specify delayed task precision in RepeatingTaskHandle. 2022-01-24 17:56:50 +00:00
task_queue_factory.h Drop support for link-time injection of the rtc::TaskQueue::Impl 2019-02-27 10:07:34 +00:00
task_queue_test.cc Use backticks not vertical bars to denote variables in comments for /api 2021-07-26 18:27:34 +00:00
task_queue_test.h Use task queue factory factory as parameter for TaskQueueTest 2019-02-07 11:00:17 +00:00