X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fcancellation.c;h=967705a910a4213b48be5f3ab79e2816cb501c93;hp=b02cdfb093cc528413cc79f1384f19418335b0d6;hb=afc35d5efde48b82a7786d9c89b115965da6b637;hpb=ed2911a11317729c1a13e779237fed736c676c1b diff --git a/src/thread/cancellation.c b/src/thread/cancellation.c index b02cdfb0..967705a9 100644 --- a/src/thread/cancellation.c +++ b/src/thread/cancellation.c @@ -1,23 +1,20 @@ #include "pthread_impl.h" -static void dummy(struct __ptcb *cb) -{ -} -weak_alias(dummy, __pthread_do_unwind); -weak_alias(dummy, __pthread_do_register); -weak_alias(dummy, __pthread_do_unregister); +void __do_cleanup_push(); +void __do_cleanup_pop(); -void __pthread_unwind_next(struct __ptcb *cb) +void _pthread_cleanup_push(struct __ptcb *cb, void (*f)(void *), void *x) { - __pthread_do_unwind(cb); + __do_cleanup_push(cb, f, x); } -void __pthread_register_cancel(struct __ptcb *cb) +void _pthread_cleanup_pop(struct __ptcb *cb, int run) { - __pthread_do_register(cb); + __do_cleanup_pop(cb, run); } -void __pthread_unregister_cancel(struct __ptcb *cb) +static void dummy() { - __pthread_do_unregister(cb); } +weak_alias(dummy, __do_cleanup_push); +weak_alias(dummy, __do_cleanup_pop);