| 6 | DECLARE_bool(verbose); |
| 7 | |
| 8 | Executor::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 | |
| 21 | Executor::~Executor() { |
| 22 | stop(); |