mirror of
https://github.com/vale981/yabar
synced 2025-03-05 09:31:39 -05:00
cleanup once-type block thread
This commit is contained in:
parent
d309ca4a72
commit
252d455ca2
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ static void ya_exec_redir_once(ya_block_t *blk) {
|
|||
pthread_mutex_unlock(&blk->mutex);
|
||||
#endif
|
||||
}
|
||||
//Cleanup and exit thread
|
||||
pthread_detach(blk->thread);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue