From 68799a2a8f7f3d44adfcb57a5e3d00e7448ee4b9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 21 Jul 2009 13:17:59 +0000 Subject: 2009-07-21 Santosh G Vattam * 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. --- cpukit/posix/include/rtems/posix/cancel.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/include/rtems/posix/cancel.h') 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 + 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 */ -- cgit v1.2.3