From ca2b4cd7b1745f444682d81fbad1938e1ee051bd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 2 Jul 2003 05:13:15 +0000 Subject: Update. 2003-07-01 Ulrich Drepper * libc-cancellation.c (__libc_cleanup_routine): Define. * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define. (__pthread_cleanup_pop): Define. --- nptl/libc-cancellation.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nptl/libc-cancellation.c') diff --git a/nptl/libc-cancellation.c b/nptl/libc-cancellation.c index 72a6d108fd..a68ee71450 100644 --- a/nptl/libc-cancellation.c +++ b/nptl/libc-cancellation.c @@ -21,6 +21,7 @@ #include #include "pthreadP.h" #include "atomic.h" +#include #ifndef NOT_IN_libc @@ -103,4 +104,12 @@ __libc_disable_asynccancel (int oldtype) } } + +void +__libc_cleanup_routine (struct __pthread_cleanup_frame *f) +{ + if (f->__do_it) + f->__cancel_routine (f->__cancel_arg); +} + #endif -- cgit v1.2.3