---
name: "coin_threads"
section: "3"
platform: "linux"
package: "coin"
version: "1:4.0.10-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/coin_threads"
---

# coin\_threads(3)

Portable Threads Abstraction Classes

## NAME

coin\_threads - Portable Threads Abstraction Classes

## SYNOPSIS

### 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 scheduler 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 type definition for the implemented thread enumerator.  enum **cc\_retval** { **CC\_ERROR** = 0, **CC\_OK** = 1, **CC\_TIMEOUT**, **CC\_BUSY** }\
 The type definition for the return value enumerator.  enum **cc\_precedence** { **CC\_READ\_PRECEDENCE**, **CC\_WRITE\_PRECEDENCE** }\
 The type definition of the **cc\_precedence** enumerator.

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

## Author

Generated automatically by Doxygen for Coin from the source code.
