This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,8 @@ PacedSender::PacedSender(Clock* clock,
40
40
ProcessThread* process_thread)
41
41
: low_latency_mode_(field_trial::IsEnabled(" OWT-LowLatencyMode" )),
42
42
process_mode_ (
43
- (field_trials != nullptr &&
44
- absl::StartsWith (field_trials->Lookup (" OWT-LowLatencyMode" ),
45
- "Enabled"))
46
- ? PacingController::ProcessMode::kRealtime
43
+ low_latency_mode_?
44
+ PacingController::ProcessMode::kRealtime
47
45
: PacingController::ProcessMode::kPeriodic ),
48
46
pacing_controller_(clock,
49
47
static_cast <PacingController::PacketSender*>(this ),
@@ -207,8 +205,7 @@ void PacedSender::MaybeWakupProcessThread() {
207
205
// Tell the process thread to call our TimeUntilNextProcess() method to get
208
206
// a new time for when to call Process().
209
207
if (process_thread_ &&
210
- (process_mode_ == PacingController::ProcessMode::kDynamic ||
211
- process_mode_ == PacingController::ProcessMode::kRealtime )) {
208
+ (process_mode_ == PacingController::ProcessMode::kDynamic )) {
212
209
process_thread_->WakeUp (&module_proxy_);
213
210
}
214
211
}
Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ void ProcessThreadImpl::Start() {
86
86
}
87
87
88
88
void ProcessThreadImpl::StartWithHighPriority () {
89
- RTC_DCHECK (thread_checker_.CalledOnValidThread ());
90
89
RTC_DCHECK (!thread_.get ());
91
90
if (thread_.get ())
92
91
return ;
@@ -96,10 +95,9 @@ void ProcessThreadImpl::StartWithHighPriority() {
96
95
for (ModuleCallback& m : modules_)
97
96
m.module ->ProcessThreadAttached (this );
98
97
99
- thread_.reset (
100
- new rtc::PlatformThread (&ProcessThreadImpl::Run, this , thread_name_));
98
+ thread_.reset (new rtc::PlatformThread (&ProcessThreadImpl::Run, this ,
99
+ thread_name_, rtc:: kRealtimePriority ));
101
100
thread_->Start ();
102
- thread_->SetPriority (rtc::kRealtimePriority );
103
101
}
104
102
105
103
void ProcessThreadImpl::Stop () {
You can’t perform that action at this time.
0 commit comments