Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
VuoCompositionState.c File Reference

Description

VuoCompositionState implementation.

Functions

struct VuoCompositionStatevuoCreateCompositionState (void *runtimeState, const char *compositionIdentifier)
 Creates a composition state.
 
void * vuoGetCompositionStateRuntimeState (struct VuoCompositionState *compositionState)
 Gets the composition state's runtimeState field.
 
const char * vuoGetCompositionStateCompositionIdentifier (struct VuoCompositionState *compositionState)
 Gets the composition state's compositionIdentifier field.
 
void vuoFreeCompositionState (struct VuoCompositionState *compositionState)
 Frees the composition state (but not its fields).
 
static void __attribute__ ((constructor))
 Initializes vuoCompositionStateKey.
 
void vuoAddCompositionStateToThreadLocalStorage (const struct VuoCompositionState *compositionState)
 Stores compositionState in thread-local storage, making it available via a call to vuoCopyCompositionStateFromThreadLocalStorage() on the same thread.
 
void vuoRemoveCompositionStateFromThreadLocalStorage (void)
 Removes the stored composition state (if any) in thread-local storage, making it no longer available to vuoCopyCompositionStateFromThreadLocalStorage().
 
void * vuoCopyCompositionStateFromThreadLocalStorage (void)
 Retrieves a copy of a composition state previously stored by vuoAddCompositionStateToThreadLocalStorage() on the current thread, or null if no composition state is found.
 

Variables

pthread_key_t vuoCompositionStateKey
 Key used to store and retrieve composition state from thread-local state.
 

Function Documentation

static void __attribute__ ( (constructor)  )
static

Initializes vuoCompositionStateKey.

void vuoAddCompositionStateToThreadLocalStorage ( const struct VuoCompositionState compositionState)

Stores compositionState in thread-local storage, making it available via a call to vuoCopyCompositionStateFromThreadLocalStorage() on the same thread.

void* vuoCopyCompositionStateFromThreadLocalStorage ( void  )

Retrieves a copy of a composition state previously stored by vuoAddCompositionStateToThreadLocalStorage() on the current thread, or null if no composition state is found.

The returned VuoCompositionState's compositionIdentifier field is null.

struct VuoCompositionState* vuoCreateCompositionState ( void *  runtimeState,
const char *  compositionIdentifier 
)
read

Creates a composition state.

The composition state does not take ownership of runtimeState or compositionIdentifier.

void vuoFreeCompositionState ( struct VuoCompositionState compositionState)

Frees the composition state (but not its fields).

const char* vuoGetCompositionStateCompositionIdentifier ( struct VuoCompositionState compositionState)

Gets the composition state's compositionIdentifier field.

void* vuoGetCompositionStateRuntimeState ( struct VuoCompositionState compositionState)

Gets the composition state's runtimeState field.

void vuoRemoveCompositionStateFromThreadLocalStorage ( void  )

Removes the stored composition state (if any) in thread-local storage, making it no longer available to vuoCopyCompositionStateFromThreadLocalStorage().

Variable Documentation

pthread_key_t vuoCompositionStateKey

Key used to store and retrieve composition state from thread-local state.