| 320 | int Node::need_force_close() { return force_close_; } |
| 321 | |
| 322 | int Node::need_opt_reset(JsonParam reset_opt) { |
| 323 | opt_reset_mutex_.lock(); |
| 324 | need_opt_reset_ = true; |
| 325 | reset_option_ = reset_opt; |
| 326 | BMFLOG(BMF_INFO) << "need_opt_reset option: " << reset_opt.dump(); |
| 327 | opt_reset_mutex_.unlock(); |
| 328 | return 0; |
| 329 | } |
| 330 | |
| 331 | // In current design, this function will not be called in parallel |
| 332 | // since one node is only scheduled by one scheduler queue |