Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

7.5 Signal Handling Considerations

When using the native Solaris Threads API, Threads.h++ terminates threads using the thr_kill() method. This method really just sends a signal to the target thread. Threads.h++ arbitrarily uses the SIGPWR signal to perform thread termination. Any thread created using Threads.h++ will unmask this signal prior to entering user code. If this signal is already used within an application, another signal may be specified by changing the source code. Simply search for the macro definition RW_THR_TERMINATE_SIGNAL and change its value to the desired signal value (the definition currently resides in thread.h).

When Threads.h++ is built using the DCE or POSIX APIs, it uses the thread cancellation mechanism to terminate threads, which does not involve the use of signals.



Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.