MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / stop

Function stop

subprojects/llama.cpp/common/console.cpp:1099–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097 });
1098 }
1099 void stop() {
1100 {
1101 std::unique_lock<std::mutex> lock(mtx);
1102 if (simple_io || !running) {
1103 return;
1104 }
1105 running = false;
1106 cv_stop.notify_all();
1107 }
1108 if (th.joinable()) {
1109 th.join();
1110 }
1111 replace_last(' ');
1112 pop_cursor();
1113 fflush(out);
1114 }
1115 }
1116
1117 void log(const char * fmt, ...) {

Callers 5

restartMethod · 0.50
generate_completionMethod · 0.50
mainFunction · 0.50
nextMethod · 0.50

Calls 3

replace_lastFunction · 0.85
pop_cursorFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected