X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread%2Fpthread_create.c;h=0e1dbb2d2e75adcd8299b6b48dc960a5b9c846bc;hb=0cbb65479147ecdaa664e88cc2a5a925f3de502f;hp=87bf8166ff85242ad890e0832cdc07c3399b7972;hpb=afc35d5efde48b82a7786d9c89b115965da6b637;p=musl diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index 87bf8166..0e1dbb2d 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -46,8 +46,6 @@ void pthread_exit(void *result) void __do_cleanup_push(struct __ptcb *cb, void (*f)(void *), void *x) { struct pthread *self = pthread_self(); - cb->__f = f; - cb->__x = x; cb->__next = self->cancelbuf; self->cancelbuf = cb; } @@ -55,7 +53,6 @@ void __do_cleanup_push(struct __ptcb *cb, void (*f)(void *), void *x) void __do_cleanup_pop(struct __ptcb *cb, int run) { __pthread_self()->cancelbuf = cb->__next; - if (run) cb->__f(cb->__x); } static int start(void *p)