MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / InitializeCores

Method InitializeCores

tests/unit_test/mocks/test_environment_state.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void 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
40void TestEnvironmentState::ResetAllCores() {
41 std::lock_guard<std::mutex> lock(map_mutex_);

Callers 7

SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected