fused-lock 0.1.1

Fused RwLock, that, once locked for reading, can not be used to obtain further exclusive access.
Documentation
  • Coverage
  • 91.67%
    11 out of 12 items documented0 out of 11 items with examples
  • Size
  • Source code size: 22.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.84 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • chorman0773/fused-lock-rs
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chorman0773

Fused Lock

This library provides a type, FusedRwLock, which has exclusive/shared semantics.

At any time, one thread may hold an exclusive lock over contents, or any number of threads may hold a shared lock to those contents. However, unlike a standard RwLock, after being locked shared at any point, it becomes impossible to acquire an exclusive lock again.

This may provide an advantage over using a standard RwLock, any time you have a value that's only written to once, and, after being read, is never written again (for example, a registry that's locked before it's accessed, or a resource loading scheme)

License

Copyright (C) 2021 Connor Horman.

This software is dual-licensed under the terms of the MIT and Apache v2 license. See LICENSE-MIT and LICENSE-APACHE for details.

Any contribution intentionally submitted by you for inclusion in this repository must be dual-licensed as above.