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

Typedefs

typedef struct cc_thread cc_thread
 The type definition for the thread structure.
 
typedef struct cc_mutex cc_mutex
 The type definition for the mutex structure.
 
typedef struct cc_rwmutex cc_rwmutex
 The type definition for the read-write mutex structure.
 
typedef struct cc_storage cc_storage
 The type definition for the thread local memory storage structure.
 
typedef struct cc_condvar cc_condvar
 The type definition for the conditional variable 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.
 
typedef struct cc_recmutex cc_recmutex
 The type definition for the recursive mutex structure.
 
typedef struct cc_sched cc_sched
 The type definition for the thread schduler structure.
 
typedef struct cc_fifo cc_fifo
 The type definition for the first-in, first-out queue structure.
 
typedef struct cc_barrier cc_barrier
 The type definition for the thread barrier 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_retval { CC_ERROR = 0, CC_OK = 1, CC_TIMEOUT, CC_BUSY }
 The enumerator for return values of thread related functions. More...
 
enum  cc_precedence { CC_READ_PRECEDENCE, CC_WRITE_PRECEDENCE }
 The precedence values for the read-write mutex. 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

◆ cc_threads_implementation

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 }

◆ cc_retval

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 }

◆ cc_precedence

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.