DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_continue(3thread)


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

References

Intro(3thread), thr_create(3thread), thr_suspend(3thread)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004