---
name: "worker.h"
section: "3"
platform: "linux"
package: "libcoin80-doc"
version: "3.1.4~abc9f50-7"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/worker.h"
---

# worker.h(3)

## NAME

worker.h -

## SYNOPSIS

`#include <Inventor/C/basic.h>`\
 `#include <Inventor/C/threads/common.h>`\

### 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.

## Author

Generated automatically by Doxygen for Coin from the source code.
