DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_continue(THREAD)


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(THREAD) or created with thr_create(THREAD). 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

References

Intro(THREAD), thr_create(THREAD), thr_suspend(THREAD)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005