TaskQueueBase: use C++17.
Fixed: webrtc:15371 Bug: webrtc:15371 Change-Id: I8bdcd733a7f43eb5e91986dfa478ad41e5074afd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/320020 Auto-Submit: Markus Handell <handellm@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40869}
This commit is contained in:
parent
fd9ac12756
commit
a84368c3d3
@ -94,8 +94,7 @@ class RTC_LOCKABLE RTC_EXPORT TaskQueueBase {
|
|||||||
void PostDelayedTask(absl::AnyInvocable<void() &&> task,
|
void PostDelayedTask(absl::AnyInvocable<void() &&> task,
|
||||||
TimeDelta delay,
|
TimeDelta delay,
|
||||||
const Location& location = Location::Current()) {
|
const Location& location = Location::Current()) {
|
||||||
PostDelayedTaskImpl(std::move(task), delay,
|
PostDelayedTaskImpl(std::move(task), delay, PostDelayedTaskTraits{},
|
||||||
PostDelayedTaskTraits{.high_precision = false},
|
|
||||||
location);
|
location);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,9 +118,9 @@ class RTC_LOCKABLE RTC_EXPORT TaskQueueBase {
|
|||||||
absl::AnyInvocable<void() &&> task,
|
absl::AnyInvocable<void() &&> task,
|
||||||
TimeDelta delay,
|
TimeDelta delay,
|
||||||
const Location& location = Location::Current()) {
|
const Location& location = Location::Current()) {
|
||||||
PostDelayedTaskImpl(std::move(task), delay,
|
PostDelayedTaskTraits traits;
|
||||||
PostDelayedTaskTraits{.high_precision = true},
|
traits.high_precision = true;
|
||||||
location);
|
PostDelayedTaskImpl(std::move(task), delay, traits, location);
|
||||||
}
|
}
|
||||||
|
|
||||||
// As specified by `precision`, calls either PostDelayedTask() or
|
// As specified by `precision`, calls either PostDelayedTask() or
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user