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


tis_raise

Sends a signal to the thread that calls it.

Syntax

tis_raise(
          signal );
 


Argument Data Type Access

signal integer read


C Binding

#include 

#include

int tis_raise ( int signal);

Arguments

signal
Specifies the signal number.

Description

The tis_raise() routine sends the signal specified by the signal parameter to the thread that called tis_raise in the program. This routine is equivalent to the following: error = pthread_ kill(pthread_self(), signal);

For related information, refer to the pthread_kill description.

Return Values

Upon successful completion of the tis_raise() function, a value of 0 (zero) is returned. If an error condition occurs, this routine returns a nonzero value that indicates the type of error. Possible return values are as follows:
Return        Description

0 Successful completion. [EINVAL] The value of signal is an invalid or unsupported signal number.


Associated Routines

   pthread_kill
   sigaction



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