1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
Ulrich Drepper
2003-07-02 05:13:15 +00:00
parent f036e569ac
commit ca2b4cd7b1
4 changed files with 37 additions and 1 deletions

View File

@ -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