thr_kill(3scl)thr_kill(3scl)NAMEthr_kill - Creates a thread.
LIBRARY
SCL Threads Library (libthread.so)
SYNOPSIS
#include <thread.h>
int thr_kill(
thread_t target_thread,
int sig );
PARAMETERS
Identifier of thread to which the signal is sent. signal number to be
sent to thread.
DESCRIPTION
This routine sends the specified signal sig to the specified thread
target_thread.
Specifying a sig argument of zero (0) causes this routine to validate
the thread argument target_thread but not to deliver any signal.
SCL IMPLEMENTATION NOTESthr_kill(3scl) is implemented by calling pthread_kill(3).
RETURN VALUES
If an error condition occurs, this routine returns an integer value
indicating the type of error.
Additional error return information may be written to the SCL error
log. Refer to scl_error_log(4scl) for details.
Possible return values are as follows: Successful completion. tar‐
get_thread is not a current thread ID. The value of sig is not zero
and is an invalid or unsupported signal number. Or:
An internal implementation error occurred. Refer to the SCL errorlog
for additional information.
ERRORS
None.
RELATED INFORMATION
Functions: pthread_kill(3), scl_intro(3scl), scl_thread_intro(3scl)
Files: scl_error_log(4scl)
Manuals: Solaris Compatibility Libraries User's Guide
thr_kill(3scl)