Skip to content

Feature: Synchronizing wrapper #10

@chrysn

Description

@chrysn

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions