source: rtems-docs/posix-users/thread_cancellation.rst @ 9980ff2

Last change on this file since 9980ff2 was 9980ff2, checked in by Marçal Comajoan Cara <mcomajoancara@…>, on Nov 21, 2018 at 5:04:12 PM

posix-users/thread_cancellation.rst: Add Prototypes

Add Prototypes to Thread Cancellation APIs.

This work was part of GCI 2018.

  • Property mode set to 100644
File size: 3.6 KB

Thread Cancellation Manager

Introduction

The thread cancellation manager is ...

The directives provided by the thread cancellation manager are:

Background

There is currently no text in this section.

Operations

There is currently no text in this section.

Directives

This section details the thread cancellation manager's directives. A subsection is dedicated to each of this manager's directives and describes the calling sequence, related constants, usage, and status codes.

pthread_cancel - Cancel Execution of a Thread

?
.. index:: pthread_cancel
?
.. index:: cancel execution of a thread

CALLING SEQUENCE:

#include <pthread.h>
int pthread_cancel(
    pthread_t thread
);

STATUS CODES:

E The

DESCRIPTION:

NOTES:

pthread_setcancelstate - Set Cancelability State

?
.. index:: pthread_setcancelstate
?
.. index:: set cancelability state

CALLING SEQUENCE:

#include <pthread.h>
int pthread_setcancelstate(
    int state,
    int *oldstate
);

STATUS CODES:

E The

DESCRIPTION:

NOTES:

pthread_setcanceltype - Set Cancelability Type

?
.. index:: pthread_setcanceltype
?
.. index:: set cancelability type

CALLING SEQUENCE:

#include <pthread.h>
int pthread_setcanceltype(
    int type,
    int *oldtype
);

STATUS CODES:

E The

DESCRIPTION:

NOTES:

pthread_testcancel - Create Cancellation Point

?
.. index:: pthread_testcancel
?
.. index:: create cancellation point

CALLING SEQUENCE:

#include <pthread.h>
void pthread_testcancel(
    void
);

STATUS CODES:

E The

DESCRIPTION:

NOTES:

pthread_cleanup_push - Establish Cancellation Handler

?
.. index:: pthread_cleanup_push
?
.. index:: establish cancellation handler

CALLING SEQUENCE:

#include <pthread.h>
void pthread_cleanup_push(
    void (*routine)(void*),
    void *arg
);

STATUS CODES:

E The

DESCRIPTION:

NOTES:

pthread_cleanup_pop - Remove Cancellation Handler

?
.. index:: pthread_cleanup_pop
?
.. index:: remove cancellation handler

CALLING SEQUENCE:

#include <pthread.h>
void pthread_cleanup_pop(
    int execute
);

STATUS CODES:

E The

DESCRIPTION:

NOTES:

Note: See TracBrowser for help on using the repository browser.