Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
Portable Threads Abstraction Classes

Classes

struct  cc_barrier
 The structure for the thread barrier. More...
 
struct  cc_condvar
 The structure for a conditional variable. More...
 
struct  cc_fifo
 The structure for a first-in, first-out queue. More...
 
struct  cc_mutex
 The structure for a mutex. More...
 
struct  cc_recmutex
 The structure for the recursive mutex. More...
 
struct  cc_rwmutex
 The structure for a read-write mutex. More...
 
struct  cc_sched
 The structure for the thread scheduler. More...
 
struct  cc_storage
 The structure for the thread local memory storage. More...
 
struct  cc_thread
 The structure for a thread. More...
 
struct  cc_worker
 The structure for a worker thread. More...
 
struct  cc_wpool
 The structure for a worker pool. More...
 

Typedefs

typedef struct cc_barrier cc_barrier
 The type definition for the thread barrier structure.
 
typedef struct cc_condvar cc_condvar
 The type definition for the conditional variable structure.
 
typedef struct cc_fifo cc_fifo
 The type definition for the first-in, first-out queue structure.
 
typedef struct cc_mutex cc_mutex
 The type definition for the mutex structure.
 
typedef struct cc_recmutex cc_recmutex
 The type definition for the recursive mutex structure.
 
typedef struct cc_rwmutex cc_rwmutex
 The type definition for the read-write mutex structure.
 
typedef struct cc_sched cc_sched
 The type definition for the thread schduler structure.
 
typedef struct cc_storage cc_storage
 The type definition for the thread local memory storage structure.
 
typedef struct cc_thread cc_thread
 The type definition for the thread structure.
 
typedef struct cc_worker cc_worker
 The type definition for the worker thread structure.
 
typedef struct cc_wpool cc_wpool
 The type definition for a worker pool structure.
 

Enumerations

enum  cc_threads_implementation { CC_NO_THREADS = -1, CC_PTHREAD = 0, CC_W32THREAD }
 The definition of the enumerator for identification of the thread type implemented. More...
 
enum  cc_precedence { CC_READ_PRECEDENCE, CC_WRITE_PRECEDENCE }
 The precedence values for the read-write mutex. More...
 
enum  cc_retval { CC_ERROR = 0, CC_OK = 1, CC_TIMEOUT, CC_BUSY }
 The enumerator for return values of thread related functions. More...
 

Detailed Description

Coin implements a set of abstractions over the native threads data types that can be portably used across all the platforms Coin has been ported to.

Enumeration Type Documentation

The definition of the enumerator for identification of the thread type implemented.

The type definition for the implemented thread enumerator.

{ CC_NO_THREADS = -1, CC_PTHREAD = 0, CC_W32THREAD }

The precedence values for the read-write mutex.

The type definition of the cc_precedence enumerator.

{CC_READ_PRECEDENCE, CC_WRITE_PRECEDENCE}

CC_READ_PRECEDENCE is the default.

enum enum cc_retval cc_retval

The enumerator for return values of thread related functions.

The type definition for the return value enumerator.

{ CC_ERROR = 0, CC_OK = 1, CC_TIMEOUT, CC_BUSY }