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


cma_thread_exit_normal

Terminates the current thread when successful completion occurs prematurely.

Syntax

cma_thread_exit_normal(
                        result);
 


Argument Data Type Access

result opaque cma_t_address read


C Binding

#include 

void cma_thread_exit_normal ( cma_t_address result);

Arguments

result
Address value that is copied and returned to the caller of cma_ thread_join.

Description

This routine terminates execution of the current thread within an arbitrary routine when successful completion occurs prematurely.

Normally, a thread terminates when the start_routine argument to cma_thread_create returns. Call this routine when it is not necessary or convenient to allow the thread's start routine to return normally to its caller.

Exceptions

None



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