| 54 | } |
| 55 | |
| 56 | void IDMgr::TryUpdateIdAndTaskIndex(const IdState* id_state) { |
| 57 | regst_desc_id_count_ = std::max(regst_desc_id_count_.load(std::memory_order_relaxed), |
| 58 | id_state->regst_desc_id_state_); |
| 59 | mem_block_id_count_ = |
| 60 | std::max(mem_block_id_count_.load(std::memory_order_relaxed), id_state->mem_block_id_state_); |
| 61 | chunk_id_count_ = |
| 62 | std::max(chunk_id_count_.load(std::memory_order_relaxed), id_state->chunk_id_state_); |
| 63 | task_id_gen_.TryUpdateTaskIndex(id_state->task_index_state_); |
| 64 | } |
| 65 | |
| 66 | } // namespace oneflow |
no test coverage detected