Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
worker.h File Reference
#include <Inventor/C/basic.h>
#include <Inventor/C/threads/common.h>

Go to the source code of this file.

Typedefs

typedef void cc_worker_f(void *)
 
typedef void cc_worker_idle_f(cc_worker *, void *)
 

Functions

cc_workercc_worker_construct (void)
 
void cc_worker_destruct (cc_worker *worker)
 
SbBool cc_worker_start (cc_worker *worker, cc_worker_f *workfunc, void *closure)
 
SbBool cc_worker_is_busy (cc_worker *worker)
 
void cc_worker_wait (cc_worker *worker)
 
void cc_worker_set_idle_callback (cc_worker *worker, cc_worker_idle_f *idlefunc, void *closure)
 

Function Documentation

◆ cc_worker_destruct()

void cc_worker_destruct ( cc_worker worker)

Will wait for the current task to be finished before destructing the worker.

◆ cc_worker_start()

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.