MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / pause

Method pause

common/log.cpp:287–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 }
286
287 void pause() {
288 {
289 std::lock_guard<std::mutex> lock(mtx);
290
291 if (!running) {
292 return;
293 }
294
295 running = false;
296
297 // push an entry to signal the worker thread to stop
298 {
299 auto & entry = entries[tail];
300 entry.is_end = true;
301
302 tail = (tail + 1) % entries.size();
303 }
304
305 cv.notify_one();
306 }
307
308 thrd.join();
309 }
310
311 void set_file(const char * path) {
312 pause();

Callers 2

common_log_pauseFunction · 0.80
common_log_flushFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected