| 29 | } |
| 30 | |
| 31 | void TestEnvironmentState::InitializeCores(size_t num_cores) { |
| 32 | std::lock_guard<std::mutex> lock(map_mutex_); |
| 33 | cores_.clear(); |
| 34 | cores_.reserve(num_cores); |
| 35 | for (size_t i = 0; i < num_cores; ++i) { |
| 36 | cores_.emplace_back(i); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | void TestEnvironmentState::ResetAllCores() { |
| 41 | std::lock_guard<std::mutex> lock(map_mutex_); |