diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-24 15:58:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-24 16:00:14 +0100 |
commit | f6a1ef9fdb9df6beea4251f4440f6db5c6a473b9 (patch) | |
tree | 7359a0b2c5a3e8e16da7facaaf46041fc4ef1462 /cpukit/posix/include | |
parent | bsp/altera-cyclone-v: Add fatal extension handler (diff) | |
download | rtems-f6a1ef9fdb9df6beea4251f4440f6db5c6a473b9.tar.bz2 |
posix: Require struct _pthread_cleanup_context
This structure is available in Newlib since 2013-11-29 (Git commit
a534dfd26e765047621acd0eda656ded886e7108).
Diffstat (limited to 'cpukit/posix/include')
-rw-r--r-- | cpukit/posix/include/rtems/posix/cancel.h | 14 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/threadsup.h | 6 |
2 files changed, 0 insertions, 20 deletions
diff --git a/cpukit/posix/include/rtems/posix/cancel.h b/cpukit/posix/include/rtems/posix/cancel.h index fd066e9175..9e60c269ce 100644 --- a/cpukit/posix/include/rtems/posix/cancel.h +++ b/cpukit/posix/include/rtems/posix/cancel.h @@ -21,20 +21,6 @@ #include <rtems/posix/threadsup.h> -#ifndef HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT -/** - * This structure is used to manage the cancelation handlers. - */ -typedef struct { - /** This field is the Chain Node so we can put these on lists. */ - Chain_Node Node; - /** This field is the cancelation routine. */ - void (*routine)( void * ); - /** This field is the argument to the cancelation routine. */ - void *arg; -} POSIX_Cancel_Handler_control; -#endif /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */ - /** * @brief POSIX run thread cancelation. * diff --git a/cpukit/posix/include/rtems/posix/threadsup.h b/cpukit/posix/include/rtems/posix/threadsup.h index 46903fed98..ae122962bc 100644 --- a/cpukit/posix/include/rtems/posix/threadsup.h +++ b/cpukit/posix/include/rtems/posix/threadsup.h @@ -85,16 +85,10 @@ typedef struct { int cancelability_type; /** This indicates if a cancelation has been requested. */ int cancelation_requested; -#ifndef HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT - /** This is the set of cancelation handlers. */ - Chain_Control Cancellation_Handlers; -#else /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */ /** * @brief LIFO list of cleanup contexts. */ struct _pthread_cleanup_context *last_cleanup_context; -#endif /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */ - } POSIX_API_Control; /** |