MCPcopy Create free account
hub / github.com/Tencent/phxqueue / Dispose

Method Dispose

phxqueue/scheduler/scheduler.cpp:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99comm::RetCode Scheduler::Dispose() {
100 comm::SchedulerBP::GetThreadInstance()->OnDispose();
101
102 if (impl_->keep_master_thread)
103 impl_->keep_master_thread->Stop();
104 if (impl_->load_balance_thread)
105 impl_->load_balance_thread->Stop();
106
107 return impl_->scheduler_mgr->Dispose();
108}
109
110const SchedulerOption *Scheduler::GetSchedulerOption() const {
111 return &impl_->opt;

Callers

nothing calls this directly

Calls 2

OnDisposeMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected