thr_continue --
continue the execution of a suspended thread
Synopsis
cc [options] -Kthread file
#include <thread.h>
int thr_continue(thread_t target_thread);
Description
thr_continue makes target_thread runnable.
target_thread is the ID of a thread
previously suspended with
thr_suspend(3thread)
or created with
thr_create(3thread).
If target_thread is not suspended,
thr_continue will have no effect.
Parameters
target_thread
thread ID of the thread to be continued
Return values
thr_continue returns zero for success
and an error number for failure, as described below.
Errors
If any of the following conditions occurs,
thr_continue returns the corresponding value:
ESRCH
target_thread cannot be found in the current process