MCPcopy Create free account
hub / github.com/baidu/tera / Start

Method Start

src/master/procedure_executor.cc:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 thread_pool_(new ThreadPool(FLAGS_procedure_executor_thread_num)) {}
30
31bool ProcedureExecutor::Start() {
32 std::unique_lock<std::mutex> lock(mutex_);
33 if (running_) {
34 return false;
35 }
36 running_ = true;
37 schedule_thread_ = std::move(std::thread(&ProcedureExecutor::ScheduleProcedures, this));
38 return true;
39}
40
41void ProcedureExecutor::Stop() {
42 mutex_.lock();

Callers 2

MasterImplMethod · 0.45
StartServerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected