b02cdfb093cc528413cc79f1384f19418335b0d6
[musl] / src / thread / cancellation.c
1 #include "pthread_impl.h"
2
3 static void dummy(struct __ptcb *cb)
4 {
5 }
6 weak_alias(dummy, __pthread_do_unwind);
7 weak_alias(dummy, __pthread_do_register);
8 weak_alias(dummy, __pthread_do_unregister);
9
10 void __pthread_unwind_next(struct __ptcb *cb)
11 {
12         __pthread_do_unwind(cb);
13 }
14
15 void __pthread_register_cancel(struct __ptcb *cb)
16 {
17         __pthread_do_register(cb);
18 }
19
20 void __pthread_unregister_cancel(struct __ptcb *cb)
21 {
22         __pthread_do_unregister(cb);
23 }