KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

C11 Threading APIs More...

Files

file  _threads.h
 C11 Threading API.
 

Macros

#define ONCE_FLAG_INIT   KTHREAD_ONCE_INIT
 Macro to initialize a once_flag object.
 
#define TSS_DTOR_ITERATIONS   1
 Maximum number of iterations over TSS destructors.
 

Typedefs

typedef kthread_once_t once_flag
 Object type backing call_once.
 
typedef mutex_t mtx_t
 C11 mutual exclusion lock type.
 
typedef condvar_t cnd_t
 C11 condition variable type.
 
typedef kthread_tthrd_t
 C11 thread identifier type.
 
typedef kthread_key_t tss_t
 C11 thread-specific storage type.
 

Detailed Description

C11 Threading APIs

Macro Definition Documentation

◆ ONCE_FLAG_INIT

#define ONCE_FLAG_INIT   KTHREAD_ONCE_INIT

Macro to initialize a once_flag object.

◆ TSS_DTOR_ITERATIONS

#define TSS_DTOR_ITERATIONS   1

Maximum number of iterations over TSS destructors.

This macro defines the maximum number of iterations that will be performed over the destructors for thread-specific storage objects when a thread terminates.

Typedef Documentation

◆ cnd_t

typedef condvar_t cnd_t

C11 condition variable type.

This type holds an identifier for a condition variable object that is to be used with C11 threading support.

◆ mtx_t

typedef mutex_t mtx_t

C11 mutual exclusion lock type.

This type holds an identifier for a mutual exclusion (mutex) lock to be used with C11 threading support.

◆ once_flag

Object type backing call_once.

This object type holds a flag that is used by the call_once function to call a function one time. It should always be initialized with the ONCE_FLAG_INIT macro.

◆ thrd_t

typedef kthread_t* thrd_t

C11 thread identifier type.

This type holds an identifier for a C11 thread.

◆ tss_t

C11 thread-specific storage type.

This type holds a thread-specific storage identifier, which allows a value to be associated with it for each and every thread running.