diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-07-02 05:13:15 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-07-02 05:13:15 +0000 |
commit | ca2b4cd7b1745f444682d81fbad1938e1ee051bd (patch) | |
tree | 8ebd1ac7c88f0dd82b7d22cd29fe5ccc07da9057 /nptl/libc-cancellation.c | |
parent | f036e569acd64504c92403e961b93b488a1c175a (diff) | |
download | glibc-ca2b4cd7b1745f444682d81fbad1938e1ee051bd.tar glibc-ca2b4cd7b1745f444682d81fbad1938e1ee051bd.tar.gz glibc-ca2b4cd7b1745f444682d81fbad1938e1ee051bd.tar.bz2 glibc-ca2b4cd7b1745f444682d81fbad1938e1ee051bd.zip |
Update.
2003-07-01 Ulrich Drepper <drepper@redhat.com>
* libc-cancellation.c (__libc_cleanup_routine): Define.
* sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
(__pthread_cleanup_pop): Define.
Diffstat (limited to 'nptl/libc-cancellation.c')
-rw-r--r-- | nptl/libc-cancellation.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdlib.h> #include "pthreadP.h" #include "atomic.h" +#include <bits/libc-lock.h> #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 |