Coin Logo http://www.coin3d.org/
http://www.kongsberg.com/kogt/

Typedefs | Functions
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_worker * cc_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

void cc_worker_destruct ( cc_worker *  worker)

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

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.


Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated for Coin by Doxygen