Return Values
thr_suspend() returns zero after completing successfully.
Any other return value indicates that an error occurred. When the following
condition occurs, thr_suspend() fails and returns the corresponding
value.
-
ESRCH
-
tid
cannot be found in the current process.