.TH "worker.h" 3 "Sat Oct 12 2013" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME worker.h \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br .SS "Typedefs" .in +1c .ti -1c .RI "typedef void \fBcc_worker_f\fP (void *)" .br .ti -1c .RI "typedef void \fBcc_worker_idle_f\fP (cc_worker *, void *)" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "cc_worker * \fBcc_worker_construct\fP (void)" .br .ti -1c .RI "void \fBcc_worker_destruct\fP (cc_worker *worker)" .br .ti -1c .RI "SbBool \fBcc_worker_start\fP (cc_worker *worker, cc_worker_f *workfunc, void *closure)" .br .ti -1c .RI "SbBool \fBcc_worker_is_busy\fP (cc_worker *worker)" .br .ti -1c .RI "void \fBcc_worker_wait\fP (cc_worker *worker)" .br .ti -1c .RI "void \fBcc_worker_set_idle_callback\fP (cc_worker *worker, cc_worker_idle_f *idlefunc, void *closure)" .br .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "void cc_worker_destruct (cc_worker *worker)" Will wait for the current task to be finished before destructing the worker\&. .SS "SbBool cc_worker_start (cc_worker *worker, cc_worker_f *workfunc, void *closure)" Start the worker by either waking is from a condvar_wait() or creating a new thread if the thread is not running\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.