Allow recursive check for RTC_DCHECK_RUN_ON macro
instead of using Lock/Unlock attributes, use Assert attribute to annotate code is running on certain task queue or thread. Such check better matches what is checked, in particular allows to recheck (and thus better document) currently used task queue Bug: None Change-Id: I5bc1c397efbc8342cf7915093b578bb015c85651 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/269381 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37619}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
a3f2e72008
commit
6e7c2685e3
@ -71,8 +71,8 @@ void NackPeriodicProcessor::UnregisterNackModule(NackRequesterBase* module) {
|
||||
repeating_task_.Stop();
|
||||
}
|
||||
|
||||
// RTC_RUN_ON(sequence_)
|
||||
void NackPeriodicProcessor::ProcessNackModules() {
|
||||
RTC_DCHECK_RUN_ON(&sequence_);
|
||||
for (NackRequesterBase* module : modules_)
|
||||
module->ProcessNacks();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user