Skip to content

Expand support for externally provided synchronization #42

@kpreid

Description

@kpreid

Ideally, it would be possible to use all nosy types implementing Sync without depending on std.

#19 proposed and #20 implemented adding RawNotifier towards this goal, but it isn’t very complete. To get the full set of nosy functionality still has to reimplement their own:

  • Notifier wrapper around RawNotifier, in order to provide a Listen implementation
  • Buffer
  • NotifierForwarder
  • StoreLock
  • Cell and CellWithLocal

In the particular case of Cell, a possible option here would be to provide a generic interface which allows atomic cell values — i.e. a cell that contains an AtomicU32 instead of a Mutex<u32> — which is more efficient and naturally generalizes to arbitrary mutexes. However, I haven’t thought of any comparably tidy solutions for Notifier, yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions