htl: clean __pthread_get_cleanup_stack hidden proto
This commit is contained in:
parent
782ee4e256
commit
f1cd3407e4
|
@ -21,8 +21,8 @@
|
||||||
#include <pt-internal.h>
|
#include <pt-internal.h>
|
||||||
|
|
||||||
struct __pthread_cancelation_handler **
|
struct __pthread_cancelation_handler **
|
||||||
___pthread_get_cleanup_stack (void)
|
__pthread_get_cleanup_stack (void)
|
||||||
{
|
{
|
||||||
return &_pthread_self ()->cancelation_handlers;
|
return &_pthread_self ()->cancelation_handlers;
|
||||||
}
|
}
|
||||||
strong_alias (___pthread_get_cleanup_stack, __pthread_get_cleanup_stack)
|
hidden_def(__pthread_get_cleanup_stack)
|
||||||
|
|
|
@ -41,7 +41,7 @@ __pthread_exit (void *status)
|
||||||
disabled. */
|
disabled. */
|
||||||
__pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
|
__pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
|
||||||
|
|
||||||
for (handlers = ___pthread_get_cleanup_stack ();
|
for (handlers = __pthread_get_cleanup_stack ();
|
||||||
*handlers != NULL;
|
*handlers != NULL;
|
||||||
*handlers = (*handlers)->__next)
|
*handlers = (*handlers)->__next)
|
||||||
(*handlers)->__handler ((*handlers)->__arg);
|
(*handlers)->__handler ((*handlers)->__arg);
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
|
|
||||||
#include <pt-internal.h>
|
#include <pt-internal.h>
|
||||||
|
|
||||||
#define __pthread_get_cleanup_stack ___pthread_get_cleanup_stack
|
|
||||||
|
|
||||||
/* Make calling thread wait for termination of thread THREAD. Return
|
/* Make calling thread wait for termination of thread THREAD. Return
|
||||||
the exit status of the thread in *STATUS. */
|
the exit status of the thread in *STATUS. */
|
||||||
int
|
int
|
||||||
|
|
|
@ -84,7 +84,6 @@ int __pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize);
|
||||||
int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
|
int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
|
||||||
size_t __stacksize);
|
size_t __stacksize);
|
||||||
int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
|
int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
|
||||||
struct __pthread_cancelation_handler **___pthread_get_cleanup_stack (void) attribute_hidden;
|
|
||||||
|
|
||||||
#if IS_IN (libpthread)
|
#if IS_IN (libpthread)
|
||||||
hidden_proto (__pthread_key_create)
|
hidden_proto (__pthread_key_create)
|
||||||
|
@ -93,6 +92,7 @@ hidden_proto (__pthread_setspecific)
|
||||||
hidden_proto (__pthread_mutex_init)
|
hidden_proto (__pthread_mutex_init)
|
||||||
hidden_proto (__pthread_mutex_destroy)
|
hidden_proto (__pthread_mutex_destroy)
|
||||||
hidden_proto (__pthread_mutex_timedlock)
|
hidden_proto (__pthread_mutex_timedlock)
|
||||||
|
hidden_proto (__pthread_get_cleanup_stack)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ASSERT_TYPE_SIZE(type, size) \
|
#define ASSERT_TYPE_SIZE(type, size) \
|
||||||
|
|
Loading…
Reference in a new issue