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:
Jiaqi Liao
2025-11-10 21:47:34 +08:00
committed by GitHub
parent 9bc00e587b
commit 94c25626dc
10 changed files with 219 additions and 179 deletions

View File

@@ -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() {