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

Method wait_until_ready

examples/server/httplib.h:5354–5358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5352inline bool Server::is_running() const { return is_running_; }
5353
5354inline void Server::wait_until_ready() const {
5355 while (!is_running() && !done_) {
5356 std::this_thread::sleep_for(std::chrono::milliseconds{1});
5357 }
5358}
5359
5360inline void Server::stop() {
5361 if (is_running_) {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected