提交 2063c4ca 编写于 作者: R Rich Felker

run pthread tsd destructors when a timer thread pretends to exit

上级 82171d6a
......@@ -13,11 +13,17 @@ struct start_args {
struct sigevent *sev;
};
static void dummy_1(pthread_t self)
{
}
weak_alias(dummy_1, __pthread_tsd_run_dtors);
static void cleanup_fromsig(void *p)
{
pthread_t self = __pthread_self();
self->cancel = 0;
self->cancelbuf = 0;
__pthread_tsd_run_dtors(self);
longjmp(p, 1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册