Module fbp::fbp_threadsafe_wrapper[][src]

Expand description

A thread safe wrapper for a type.

This wrapper will ensure that all references point to the same underlying data even between threads. Access is atomic as a Mutex is used and because the Arc ensures that all references point to the same underlying data. This is a helpful type for an FBP node as FBP nodes run independent threads for their input queue and message processing.

Structs

Generic thread safe Option

Generic Thread safe type