source: rtems/cpukit/posix/include/rtems/posix/cancel.h @ 68799a2a

4.104.115
Last change on this file since 68799a2a was 68799a2a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/21/09 at 13:17:59

2009-07-21 Santosh G Vattam <vattam.santosh@…>

  • 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.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file rtems/posix/cancel.h
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-2009.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef _RTEMS_POSIX_CANCEL_H
17#define _RTEMS_POSIX_CANCEL_H
18
19#include <rtems/posix/threadsup.h>
20
21typedef struct {
22  Chain_Node  Node;
23  void      (*routine)( void * );
24  void       *arg;
25}  POSIX_Cancel_Handler_control;
26
27/*
28 *  _POSIX_Threads_cancel_run
29 *
30 *  DESCRIPTION:
31 *
32 *  This support routine runs through the chain of cancel handlers that
33 *  have been registered and executes them.
34 */
35
36void _POSIX_Threads_cancel_run(
37  Thread_Control *the_thread
38);
39
40/*
41 *  _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch
42 *
43 *  DESCRIPTION:
44 * 
45 *  This routine separates a piece of code that existed as part of
46 *  another routine, but had to be separated to improve coverage.
47 */
48
49void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch (
50  POSIX_API_Control *thread_support
51);
52
53#endif
54/* end of include file */
Note: See TracBrowser for help on using the repository browser.