suspend the execution of a thread
cc [options] -Kthread file
int thr_suspend(thread_t target_thread);
thr_suspend suspends execution of target_thread.
thr_suspend returns when target_thread is suspended.
A concurrent thr_continue of the same thread might be lost or
might take effect depending on the timing.
If target_thread is already suspended,
thr_suspend has no effect.
A thread might suspend itself.
thr_continue will resume the execution of target_thread.
thread ID of the thread to be suspended
thr_suspend returns zero for success
and an error number for failure.
If any of the following conditions occurs,
thr_suspend returns the corresponding value:
target_thread cannot be found in the current process
We do not recommend using thr_suspend and thr_continue
to synchronize threads.
Use synchronization routines instead.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005