Vuo  2.3.2
Public Member Functions | List of all members
VuoNodeSynchronization Class Reference

Description

Provides functions to ensure that nodes are executed thread-safely.

Definition at line 19 of file VuoNodeSynchronization.hh.

Public Member Functions

void lockNodes (VuoCompositionState *compositionState, unsigned long *nodeIndices, unsigned long nodeCount, unsigned long eventId)
 Waits until eventId has claimed exclusive access to all of the given nodes. More...
 
void lockNode (VuoCompositionState *compositionState, unsigned long nodeIndex, unsigned long eventId)
 Waits until eventId has claimed exclusive access to the node. More...
 
void unlockNodes (VuoCompositionState *compositionState, unsigned long *nodeIndices, unsigned long nodeCount)
 Relinquishes exclusive access to all of the given nodes. More...
 
void unlockNode (VuoCompositionState *compositionState, unsigned long nodeIndex)
 Relinquishes exclusive access to the node. More...
 

Member Function Documentation

◆ lockNode()

void VuoNodeSynchronization::lockNode ( VuoCompositionState compositionState,
unsigned long  nodeIndex,
unsigned long  eventId 
)

Waits until eventId has claimed exclusive access to the node.

Definition at line 29 of file VuoNodeSynchronization.cc.

◆ lockNodes()

void VuoNodeSynchronization::lockNodes ( VuoCompositionState compositionState,
unsigned long *  nodeIndices,
unsigned long  nodeCount,
unsigned long  eventId 
)

Waits until eventId has claimed exclusive access to all of the given nodes.

The nodes should be passed in the same order as VuoCompilerBitcodeGenerator::orderedNodes.

Definition at line 20 of file VuoNodeSynchronization.cc.

◆ unlockNode()

void VuoNodeSynchronization::unlockNode ( VuoCompositionState compositionState,
unsigned long  nodeIndex 
)

Relinquishes exclusive access to the node.

Definition at line 61 of file VuoNodeSynchronization.cc.

◆ unlockNodes()

void VuoNodeSynchronization::unlockNodes ( VuoCompositionState compositionState,
unsigned long *  nodeIndices,
unsigned long  nodeCount 
)

Relinquishes exclusive access to all of the given nodes.

Definition at line 52 of file VuoNodeSynchronization.cc.


The documentation for this class was generated from the following files: