n*spsc uring_pool

This commit is contained in:
2026-03-03 12:56:07 +00:00
parent ff924b033c
commit 2ec61bdf85
9 changed files with 747 additions and 616 deletions

View File

@@ -314,7 +314,7 @@ int kvs_hash_save(iouring_ctx_t *uring, kvs_hash_t *inst, const char* filename){
perror("task init failed");
goto clean;
}
cleanup_finished_iouring_tasks();
cleanup_finished_iouring_tasks(uring);
current_off += (off_t) total;
}
@@ -323,7 +323,7 @@ int kvs_hash_save(iouring_ctx_t *uring, kvs_hash_t *inst, const char* filename){
clean:
while (!uring_task_complete(uring)) {
usleep(1000);
cleanup_finished_iouring_tasks();
cleanup_finished_iouring_tasks(uring);
}
close(fd);
return 0;
@@ -381,4 +381,4 @@ int kvs_hash_load(kvs_hash_t *inst, const char* filename){
}
fclose(fp);
return 0;
}
}