Skip to main content

SharedByteArray

Type Alias SharedByteArray 

Source
pub type SharedByteArray = Arc<Mutex<Vec<u8>>>;
Expand description

Shared mutable byte array — Arc<Mutex> for in-place mutation semantics and Send requirement (tidepool-mcp spawns threads). IMPORTANT: Never hold two locks simultaneously on different SharedByteArrays within a single primop — always clone data out first to avoid deadlock.

Aliased Type§

pub struct SharedByteArray { /* private fields */ }