normal exit from timer thread should run dtors, restore cancel state
This commit is contained in:
parent
c516807173
commit
8b625e45ff
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ static void timer_handler(int sig, siginfo_t *si, void *ctx)
|
||||||
if (!setjmp(jb) && si->si_code == SI_TIMER) {
|
if (!setjmp(jb) && si->si_code == SI_TIMER) {
|
||||||
pthread_cleanup_push(cleanup_fromsig, jb);
|
pthread_cleanup_push(cleanup_fromsig, jb);
|
||||||
notify(val);
|
notify(val);
|
||||||
pthread_cleanup_pop(0);
|
pthread_cleanup_pop(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue