Migrate remaining webrtc usage of TaskQueueBase to absl::AnyInvocable
Bug: webrtc:14245 Change-Id: I8de2c23da5fbdfc0b1efbbe07fb6e8de744424a3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268191 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37565}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
489f648ea3
commit
c05a1be5b4
@ -477,10 +477,8 @@ void AudioDeviceBuffer::LogStats(LogState state) {
|
||||
|
||||
// Keep posting new (delayed) tasks until state is changed to kLogStop.
|
||||
task_queue_.PostDelayedTask(
|
||||
ToQueuedTask([this] {
|
||||
AudioDeviceBuffer::LogStats(AudioDeviceBuffer::LOG_ACTIVE);
|
||||
}),
|
||||
time_to_wait_ms);
|
||||
[this] { AudioDeviceBuffer::LogStats(AudioDeviceBuffer::LOG_ACTIVE); },
|
||||
TimeDelta::Millis(time_to_wait_ms));
|
||||
}
|
||||
|
||||
void AudioDeviceBuffer::ResetRecStats() {
|
||||
|
||||
Reference in New Issue
Block a user