#include <thread.h>
int thr_suspend(thread_t target_thread);
int thr_continue(thread_t target_thread);
MT-Safe
thr_suspend() immediately suspends the execution of the thread specified by target_thread. On successful return from thr_suspend(), the suspended thread is no longer executing. Once a thread is suspended, subsequent calls to thr_suspend() have no effect.
thr_continue() resumes the execution of a suspended thread. Once a suspended thread is continued, subsequent calls to thr_continue() have no effect.
A suspended thread will not be awakened by a signal. The signal stays pending until the execution of the thread is resumed by thr_continue().
thr_suspend() and thr_continue() return 0 when successful. A non-zero value indicates an error.