MCPcopy Create free account
hub / github.com/dmlc/parameter_server / Executor

Method Executor

src/system/executor.cc:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6DECLARE_bool(verbose);
7
8Executor::Executor(Customer& obj) : obj_(obj) {
9 my_node_ = Postoffice::instance().myNode();
10 // insert virtual group nodes
11 for (auto id : groupIDs()) {
12 Node node;
13 node.set_role(Node::GROUP);
14 node.set_id(id);
15 add(node);
16 }
17
18 thread_ = unique_ptr<std::thread>(new std::thread(&Executor::run, this));
19}
20
21Executor::~Executor() {
22 stop();

Callers

nothing calls this directly

Calls 2

set_roleMethod · 0.80
set_idMethod · 0.45

Tested by

no test coverage detected