Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

WrapMutexComponent<T>

Wraps an input in a Mutex, making it mutable.

This is necessary for drawing on a buffer with the draw component, and its contents can be later accessed by unpacking the inner field.

Inputs

Primary channel (T): the value to wrap.

Outputs

Default channel (single, Mutex<T>): the value, wrapped in a mutex.

Configuration

Appears in configuration files with type = "wrap-mutex".

Additional fields:

  • inner (Type): the type of the value to wrap. apriltag and blob are not recognized.

Additional Constructors

Components with a type of canvas also construct this component, with an inner type of Buffer.