MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / terminate

Method terminate

smallthinker/tools/server/server.cpp:1643–1647  ·  view source on GitHub ↗

end the start_loop routine

Source from the content-addressed store, hash-verified

1641
1642 // end the start_loop routine
1643 void terminate() {
1644 std::unique_lock<std::mutex> lock(mutex_tasks);
1645 running = false;
1646 condition_tasks.notify_all();
1647 }
1648
1649 /**
1650 * Main loop consists of these steps:

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected