mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
Improve thread pool
This commit is contained in:
parent
ec5287eeef
commit
fcd0ca2982
3 changed files with 550 additions and 45 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue