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

Method send

tools/server/server-queue.cpp:319–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void server_response::send(server_task_result_ptr && result) {
320 RES_DBG("sending result for task id = %d\n", result->id);
321
322 std::unique_lock<std::mutex> lock(mutex_results);
323 for (const auto & id_task : waiting_task_ids) {
324 if (result->id == id_task) {
325 RES_DBG("task id = %d pushed to result queue\n", result->id);
326
327 queue_results.emplace_back(std::move(result));
328 condition_results.notify_all();
329 return;
330 }
331 }
332}
333
334void server_response::terminate() {
335 running = false;

Callers 7

send_errorMethod · 0.80
send_partial_responseMethod · 0.80
send_final_responseMethod · 0.80
send_embeddingMethod · 0.80
send_rerankMethod · 0.80
process_single_taskMethod · 0.80
server_http_proxyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected