summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/cancel.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-21 14:16:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-21 14:16:00 +0000
commit75eaf66aa17ba449dbf6d860c933c1ea6cf89566 (patch)
tree318a4b1226d922040a0969470a281bf218ef05c6 /cpukit/posix/include/rtems/posix/cancel.h
parent2009-07-21 Santosh G Vattam <vattam.santosh@gmail.com> (diff)
downloadrtems-75eaf66aa17ba449dbf6d860c933c1ea6cf89566.tar.bz2
2009-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/cancel.h, posix/src/cancel.c, posix/src/canceleval.c, posix/src/setcancelstate.c, posix/src/setcanceltype.c: Fix a minor bug in the previous modification which resulted in psxcancel failing.
Diffstat (limited to 'cpukit/posix/include/rtems/posix/cancel.h')
-rw-r--r--cpukit/posix/include/rtems/posix/cancel.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/cpukit/posix/include/rtems/posix/cancel.h b/cpukit/posix/include/rtems/posix/cancel.h
index 228c60c7c4..04f13cea11 100644
--- a/cpukit/posix/include/rtems/posix/cancel.h
+++ b/cpukit/posix/include/rtems/posix/cancel.h
@@ -1,5 +1,8 @@
/**
* @file rtems/posix/cancel.h
+ *
+ * This file contains the prototypes and data types used to implement
+ * POSIX thread cancelation.
*/
/*
@@ -18,36 +21,41 @@
#include <rtems/posix/threadsup.h>
+/**
+ * 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;
-/*
- * _POSIX_Threads_cancel_run
- *
- * DESCRIPTION:
+/**
+ * @brief _POSIX_Threads_cancel_run
*
* This support routine runs through the chain of cancel handlers that
* have been registered and executes them.
+ *
+ * @param[in] the_thread is the thread whose cancelation handlers
+ * should be run
*/
-
void _POSIX_Threads_cancel_run(
Thread_Control *the_thread
);
-/*
- * _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch
+/**
+ * @brief _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.
+ *
+ * @param[in] the_thread is the thread to evaluate canceling
*/
-
void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch (
- POSIX_API_Control *thread_support
+ Thread_Control *the_thread
);
#endif