-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Access to the CAL is through &mut for reasons discussed in #1, and applications are encouraged to work with this. When they really can't, they can require that their impl is Clone and clone it around (those would likely be even Copy).
This library should provide, at least for std platforms, some wrapper (maybe a newtype of Arc<Mutex<T>> requiring T: Send) that serializes access to the underlying implementation by blocking until the previous user is done.
This can then also serve as a template for more platform specific implementations of the same simple logic. (For example, an RTOS likely has its own Mutex in which it can wrap any CAL).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels