RTEMS CPU Kit with SuperCore  4.11.3
Functions
cancelrun.c File Reference

Executes a thread's cancellation handlers. More...

#include <pthread.h>
#include <rtems/score/thread.h>
#include <rtems/score/threaddispatch.h>
#include <rtems/posix/cancel.h>
#include <rtems/posix/threadsup.h>
#include <rtems/score/chainimpl.h>
#include <rtems/score/isr.h>
#include <rtems/score/wkspace.h>
#include <rtems/posix/pthreadimpl.h>
Include dependency graph for cancelrun.c:

Functions

void _POSIX_Threads_cancel_run (Thread_Control *the_thread)
 POSIX run thread cancelation. More...
 

Detailed Description

Executes a thread's cancellation handlers.

Function Documentation

◆ _POSIX_Threads_cancel_run()

void _POSIX_Threads_cancel_run ( Thread_Control the_thread)

POSIX run thread cancelation.

This support routine runs through the chain of cancel handlers that have been registered and executes them.

Parameters
[in]the_threadis a pointer to the thread whose cancelation handlers should be run

References _Chain_Extract_unprotected(), _Chain_Is_empty(), _Chain_Tail(), _ISR_Disable, _ISR_Enable, _Thread_Disable_dispatch(), _Thread_Enable_dispatch(), _Workspace_Free(), Thread_Control::API_Extensions, POSIX_Cancel_Handler_control::arg, POSIX_API_Control::cancelability_state, POSIX_API_Control::Cancellation_Handlers, POSIX_Cancel_Handler_control::Node, Chain_Node_struct::previous, POSIX_Cancel_Handler_control::routine, and THREAD_API_POSIX.