MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / thisThread

Method thisThread

mllm/engine/Context.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105SessionTCB::ptr_t Context::thisThread() {
106 if (!session_threads_.count(std::this_thread::get_id())) {
107 session_threads_.insert({std::this_thread::get_id(), std::make_shared<SessionTCB>()});
108 std::stringstream ss;
109 ss << std::this_thread::get_id();
110 MLLM_WARN(
111 "This control thread did not registered a SessionTCB in Context. The Context will automatically create one for you. "
112 "But it is recommend to create SessionTCB manually. THREAD ID: {}",
113 ss.str());
114 }
115 return session_threads_[std::this_thread::get_id()];
116}
117
118SessionTCB::ptr_t Context::mainThread() { return main_thread_; }
119

Callers 12

shutdownContextFunction · 0.80
cleanThisThreadFunction · 0.80
thisThreadFunction · 0.80
trace_Function · 0.80
traceCommentFunction · 0.80
traceStartFunction · 0.80
traceStopFunction · 0.80
traceYieldFunction · 0.80
traceContinueFunction · 0.80
__mainMethod · 0.80
__traceMethod · 0.80
__mainMethod · 0.80

Calls 2

insertMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected