[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


cma_thread_exit_error

Terminates the current thread when an error occurs.

Syntax

cma_thread_exit_error();

C Binding

#include 

void cma_thread_exit_error (void);

Arguments

None

Description

This routine terminates execution of the current thread within an arbitrary routine when an error occurs. Normally, a thread terminates when the start_routine argument to cma_thread_ create returns.

Call this routine only when an error occurs that requires thread termination and you do not want to signify the error by raising an exception. (Raising an exception is the preferred means of indicating errors; however, an unhandled exception will terminate the program.)

Exceptions

None



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]