diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-08 20:24:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-08 20:24:21 +0000 |
commit | 9afe4964163b658f7271653f116f7570e826eda6 (patch) | |
tree | f07b39bc193dea94ba122efe72c95fb7c9b105ad | |
parent | f9657e88fabd682d176d1205a8a03677228eaab3 (diff) | |
download | glibc-9afe4964163b658f7271653f116f7570e826eda6.zip glibc-9afe4964163b658f7271653f116f7570e826eda6.tar.gz glibc-9afe4964163b658f7271653f116f7570e826eda6.tar.bz2 |
Update.
* sysdeps/pthread/pthread.h: Remove duplicate
pthread_cleanup_{push,pop} definitions.
-rw-r--r-- | nptl/ChangeLog | 3 | ||||
-rw-r--r-- | nptl/sysdeps/pthread/pthread.h | 45 |
2 files changed, 3 insertions, 45 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index a6ce1e9..41de165 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,8 @@ 2003-04-08 Ulrich Drepper <drepper@redhat.com> + * sysdeps/pthread/pthread.h: Remove duplicate + pthread_cleanup_{push,pop} definitions. + * tst-barrier2.c: Eliminate warnings. * tst-cancel4.c: Likewise. * tst-cond4.c: Likewise. diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h index 36a996a..72673d1 100644 --- a/nptl/sysdeps/pthread/pthread.h +++ b/nptl/sysdeps/pthread/pthread.h @@ -691,51 +691,6 @@ extern int pthread_setspecific (pthread_key_t __key, __const void *__pointer) __THROW; -/* Install a cleanup handler: ROUTINE will be called with arguments ARG - when the thread is cancelled or calls pthread_exit. ROUTINE will also - be called with arguments ARG when the matching pthread_cleanup_pop - is executed with non-zero EXECUTE argument. - pthread_cleanup_push and pthread_cleanup_pop are macros and must always - be used in matching pairs at the same nesting level of braces. */ -#define pthread_cleanup_push(routine,arg) \ - { struct _pthread_cleanup_buffer _buffer; \ - _pthread_cleanup_push (&_buffer, (routine), (arg)); - -extern void _pthread_cleanup_push (struct _pthread_cleanup_buffer *__buffer, - void (*__routine) (void *), - void *__arg) __THROW; - -/* Remove a cleanup handler installed by the matching pthread_cleanup_push. - If EXECUTE is non-zero, the handler function is called. */ -#define pthread_cleanup_pop(execute) \ - _pthread_cleanup_pop (&_buffer, (execute)); } - -extern void _pthread_cleanup_pop (struct _pthread_cleanup_buffer *__buffer, - int __execute) __THROW; - - -#ifdef __USE_GNU -/* Install a cleanup handler as pthread_cleanup_push does, but also - saves the current cancellation type and set it to deferred cancellation. */ -# define pthread_cleanup_push_defer_np(routine,arg) \ - { struct _pthread_cleanup_buffer _buffer; \ - _pthread_cleanup_push_defer (&_buffer, (routine), (arg)); - -extern void _pthread_cleanup_push_defer (struct _pthread_cleanup_buffer *__buffer, - void (*__routine) (void *), - void *__arg) __THROW; - -/* Remove a cleanup handler as pthread_cleanup_pop does, but also - restores the cancellation type that was in effect when the matching - pthread_cleanup_push_defer was called. */ -# define pthread_cleanup_pop_restore_np(execute) \ - _pthread_cleanup_pop_restore (&_buffer, (execute)); } - -extern void _pthread_cleanup_pop_restore (struct _pthread_cleanup_buffer *__buffer, - int __execute) __THROW; -#endif - - #ifdef __USE_XOPEN2K /* Get ID of CPU-time clock for thread THREAD_ID. */ extern int pthread_getcpuclockid (pthread_t __thread_id, |