n*spsc uring_pool
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user