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

Method post_task

tools/server/server-queue.cpp:343–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341//
342
343void server_response_reader::post_task(server_task && task, bool front) {
344 GGML_ASSERT(id_tasks.empty() && "post_task() can only be called once per reader");
345 GGML_ASSERT(!task.is_parent() && "not supported, use post_tasks() instead");
346 task.index = 0;
347 id_tasks.insert(task.id);
348 states.push_back(task.create_state());
349 queue_results.add_waiting_task_id(task.id);
350 queue_tasks.post(std::move(task), front);
351}
352
353void server_response_reader::post_tasks(std::vector<server_task> && tasks, bool front) {
354 GGML_ASSERT(id_tasks.empty() && "post_tasks() can only be called once per reader");

Callers 5

generate_completionMethod · 0.80
init_routesMethod · 0.80
handle_slots_saveMethod · 0.80
handle_slots_restoreMethod · 0.80
handle_slots_eraseMethod · 0.80

Calls 7

is_parentMethod · 0.80
create_stateMethod · 0.80
add_waiting_task_idMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45
push_backMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected