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

Method FindTaskByContext

tests/unit_test/mocks/test_environment_state.cpp:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117auto TestEnvironmentState::FindTaskByContext(void* context_ptr)
118 -> TaskControlBlock* {
119 std::lock_guard<std::mutex> lock(map_mutex_);
120 auto it = context_to_task_map_.find(context_ptr);
121 if (it != context_to_task_map_.end()) {
122 return it->second;
123 }
124 return nullptr;
125}
126
127void TestEnvironmentState::DumpAllCoreStates() const {
128 std::lock_guard<std::mutex> lock(map_mutex_);

Callers 1

switch_toFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected