eCos Reference Manual
Prev | Chapter 31. POSIX Standard Support | Next

# Thread Cancellation [POSIX Section 18]

## Functions Implemented

    int pthread_cancel(pthread_t thread);
    int pthread_setcancelstate(int state, int *oldstate);
    int pthread_setcanceltype(int type, int *oldtype);
    void pthread_testcancel(void);
    void pthread_cleanup_push( void (*routine)(void *),
                               void *arg);
    void pthread_cleanup_pop( int execute);

## Functions Omitted

<none>

## Notes

Asynchronous cancellation is only partially implemented. In particular, cancellation may occur in unexpected places in some functions. It is strongly recommended that only synchronous cancellation be used.

Prev | Home | Next
Thread-Specific Data [POSIX Section 17] | Up | Non-POSIX Functions