mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-04-19 22:09:10 +00:00
Fix kt-kernel for new wrapper (#1588)
* update README for kt-kernel * style: format C++ and Python code in kt-kernel - Format C++ files: task_queue, ext_bindings, and MoE operators - Format Python utility modules: amx, llamafile, and loader - Improve code readability and consistency
This commit is contained in:
@@ -44,8 +44,7 @@ void TaskQueue::enqueue(std::function<void()> task) {
|
||||
|
||||
void TaskQueue::sync(size_t allow_n_pending) {
|
||||
// Spin until the pending task count drops to the allowed threshold.
|
||||
while (pending.load(std::memory_order_acquire) > allow_n_pending)
|
||||
;
|
||||
while (pending.load(std::memory_order_acquire) > allow_n_pending);
|
||||
}
|
||||
|
||||
void TaskQueue::worker() {
|
||||
|
||||
Reference in New Issue
Block a user