summaryrefslogtreecommitdiffstats
path: root/posix-users
diff options
context:
space:
mode:
authorMarçal Comajoan Cara <mcomajoancara@gmail.com>2018-11-21 18:04:12 +0100
committerJoel Sherrill <joel@rtems.org>2018-11-21 12:08:41 -0600
commit9980ff21a3cb1a5c396566e0c3151b1be4c442cb (patch)
tree4ebb5c8b4c4c97d5e520d20a3509f148ea02ae51 /posix-users
parent5278c7f8527bf671b655d2d52f70bb7b103399ef (diff)
downloadrtems-docs-9980ff21a3cb1a5c396566e0c3151b1be4c442cb.tar.bz2
posix-users/thread_cancellation.rst: Add Prototypes
Add Prototypes to Thread Cancellation APIs. This work was part of GCI 2018.
Diffstat (limited to 'posix-users')
-rw-r--r--posix-users/thread_cancellation.rst21
1 files changed, 18 insertions, 3 deletions
diff --git a/posix-users/thread_cancellation.rst b/posix-users/thread_cancellation.rst
index ae14542..0cf4da4 100644
--- a/posix-users/thread_cancellation.rst
+++ b/posix-users/thread_cancellation.rst
@@ -55,7 +55,9 @@ pthread_cancel - Cancel Execution of a Thread
.. code-block:: c
+ #include <pthread.h>
int pthread_cancel(
+ pthread_t thread
);
**STATUS CODES:**
@@ -81,7 +83,10 @@ pthread_setcancelstate - Set Cancelability State
.. code-block:: c
+ #include <pthread.h>
int pthread_setcancelstate(
+ int state,
+ int *oldstate
);
**STATUS CODES:**
@@ -107,7 +112,10 @@ pthread_setcanceltype - Set Cancelability Type
.. code-block:: c
+ #include <pthread.h>
int pthread_setcanceltype(
+ int type,
+ int *oldtype
);
**STATUS CODES:**
@@ -133,7 +141,9 @@ pthread_testcancel - Create Cancellation Point
.. code-block:: c
- int pthread_testcancel(
+ #include <pthread.h>
+ void pthread_testcancel(
+ void
);
**STATUS CODES:**
@@ -159,7 +169,10 @@ pthread_cleanup_push - Establish Cancellation Handler
.. code-block:: c
- int pthread_cleanup_push(
+ #include <pthread.h>
+ void pthread_cleanup_push(
+ void (*routine)(void*),
+ void *arg
);
**STATUS CODES:**
@@ -185,7 +198,9 @@ pthread_cleanup_pop - Remove Cancellation Handler
.. code-block:: c
- int pthread_cleanup_push(
+ #include <pthread.h>
+ void pthread_cleanup_pop(
+ int execute
);
**STATUS CODES:**