Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit be6ef92

Browse files
committed
bug: change back to busy waiting to avoid issue on background task
1 parent 0c06aa5 commit be6ef92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controllers/llamaCPP.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,8 +1537,9 @@ struct llama_server_context {
15371537
"cache\n");
15381538
kv_cache_clear();
15391539
}
1540-
std::unique_lock<std::mutex> lock(mutex_tasks);
1541-
condition_tasks.wait(lock, [&] { return !queue_tasks.empty(); });
1540+
// TODO: Need to implement queueing using CV for better performance
1541+
// std::unique_lock<std::mutex> lock(mutex_tasks);
1542+
// condition_tasks.wait(lock, [&] { return !queue_tasks.empty(); });
15421543
}
15431544

15441545
for (llama_client_slot &slot : slots) {

0 commit comments

Comments
 (0)