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

Function start

subprojects/llama.cpp/common/console.cpp:1079–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077 fflush(out);
1078 }
1079 void start() {
1080 std::unique_lock<std::mutex> lock(mtx);
1081 if (simple_io || running) {
1082 return;
1083 }
1084 common_log_flush(common_log_main());
1085 fprintf(out, "%c", LOADING_CHARS[0]);
1086 fflush(out);
1087 frame = 1;
1088 running = true;
1089 th = std::thread([]() {
1090 std::unique_lock<std::mutex> lock(mtx);
1091 while (true) {
1092 if (cv_stop.wait_for(lock, wait_time, []{ return !running; })) {
1093 break;
1094 }
1095 draw_next_frame();
1096 }
1097 });
1098 }
1099 void stop() {
1100 {
1101 std::unique_lock<std::mutex> lock(mtx);

Callers 13

animateBoundsToMethod · 0.85
animateExitMethod · 0.85
setFragmentMethod · 0.85
startSearchMethod · 0.85
onInputMethod · 0.85
restartMethod · 0.85
generate_completionMethod · 0.85
mainFunction · 0.85
Handler.ktFile · 0.85
startAsyncMethod · 0.85
startAsyncMethod · 0.85

Calls 3

common_log_flushFunction · 0.85
common_log_mainFunction · 0.85
draw_next_frameFunction · 0.85

Tested by

no test coverage detected