Improve thread pool

This commit is contained in:
Antonio SJ Musumeci 2026-03-13 14:15:40 -05:00
parent 9e3e4b690d
commit 716636ced9
3 changed files with 555 additions and 37 deletions

View file

@ -318,6 +318,9 @@ fuse_session_loop_mt(struct fuse_session *se_,
while(!fuse_session_exited(se_))
sem_wait(&finished);
for(auto t : read_threads)
pthread_cancel(t);
sem_destroy(&finished);
return 0;