summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/cancel.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-21 13:17:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-21 13:17:59 +0000
commit68799a2a8f7f3d44adfcb57a5e3d00e7448ee4b9 (patch)
tree8c2aef7e06e4e629fc01f016c6cd1e9dc8165167 /cpukit/posix/include/rtems/posix/cancel.h
parentUpdate for MPC55XX changes (diff)
downloadrtems-68799a2a8f7f3d44adfcb57a5e3d00e7448ee4b9.tar.bz2
2009-07-21 Santosh G Vattam <vattam.santosh@gmail.com>
* posix/Makefile.am, posix/include/rtems/posix/cancel.h, posix/src/cancel.c, posix/src/setcancelstate.c, posix/src/setcanceltype.c: Add _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch method to avoid duplication of code and ease coverage analysis. * posix/src/canceleval.c: New file.
Diffstat (limited to 'cpukit/posix/include/rtems/posix/cancel.h')
-rw-r--r--cpukit/posix/include/rtems/posix/cancel.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/cancel.h b/cpukit/posix/include/rtems/posix/cancel.h
index 9f1437667b..228c60c7c4 100644
--- a/cpukit/posix/include/rtems/posix/cancel.h
+++ b/cpukit/posix/include/rtems/posix/cancel.h
@@ -3,7 +3,7 @@
*/
/*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,8 @@
#ifndef _RTEMS_POSIX_CANCEL_H
#define _RTEMS_POSIX_CANCEL_H
+#include <rtems/posix/threadsup.h>
+
typedef struct {
Chain_Node Node;
void (*routine)( void * );
@@ -35,5 +37,18 @@ void _POSIX_Threads_cancel_run(
Thread_Control *the_thread
);
+/*
+ * _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch
+ *
+ * DESCRIPTION:
+ *
+ * This routine separates a piece of code that existed as part of
+ * another routine, but had to be separated to improve coverage.
+ */
+
+void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch (
+ POSIX_API_Control *thread_support
+);
+
#endif
/* end of include file */