#thread-safe #sync-concurrency #sync

sync-cell

A collection of easier to use thread-safe types for the creation of larger thread safe systems

1 unstable release

0.2.0 Dec 30, 2023

#1776 in Concurrency

BSD-3-Clause

19KB
341 lines

A module containing easier to use thread-safe types for the creation of larger thread safe systems.

Included Types

  • SyncCell - A replacement for std::cell::RefCell and std::cell::Cell with an easier to use API than std::sync::RwLock.
  • HeldSyncCell - A cell that maintains a previous value until the update method is called at which point any changes to the value are applied.

Sync Cell

A crate containing easier to use thread-safe types for the creation of larger thread safe systems.

Included Types

  • SyncCell<T> - A replacement for std::cell::RefCell and std::cell::Cell with an easier to use API than std::sync::RwLock.
  • HeldSyncCell<T> - A cell that maintains a previous value until the update method is called at which point any changes to the value are applied.

No runtime deps