summary refs log tree commit diff
path: root/nptl/libc-cancellation.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-07-02 05:13:15 +0000
committerUlrich Drepper <drepper@redhat.com>2003-07-02 05:13:15 +0000
commitca2b4cd7b1745f444682d81fbad1938e1ee051bd (patch)
tree8ebd1ac7c88f0dd82b7d22cd29fe5ccc07da9057 /nptl/libc-cancellation.c
parentf036e569acd64504c92403e961b93b488a1c175a (diff)
downloadglibc-ca2b4cd7b1745f444682d81fbad1938e1ee051bd.tar.gz
glibc-ca2b4cd7b1745f444682d81fbad1938e1ee051bd.tar.xz
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.c9
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