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... | |
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.
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.
void VuoNodeSynchronization::unlockNode | ( | VuoCompositionState * | compositionState, |
unsigned long | nodeIndex | ||
) |
Relinquishes exclusive access to the node.
Definition at line 61 of file VuoNodeSynchronization.cc.
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.