Module lock

Module lock 

Source
Available on crate feature lock only.

Structsยง

SpiceLock
A wrapper singleton struct around the API to prevent concurrent calls to SPICE functions from multiple threads. Exposes all functions as methods with identical signatures besides the added &self argument. Only available with the lock feature enabled.