1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Jan 27, 202595,881 downloads per month Used in 22 crates (4 directly). BSD-3-Clause. 75KB 1K SLoC Atomic Write File. This is a Rust crate that offers functionality to write and overwrite files atomically, that is: without leaving the file in an intermediate state.Either the new contents of the files are written to the filesystem, or the old contents (if any) are preserved.
  3. Sep 26, 2024For example, if one thread atomically loads a pointer and another subsequently swaps the pointer, we need a mechanism for working out when the first thread is no longer accessing the pointer and we can reclaim the underlying memory. One solution to this is using epoch based memory reclamation such as that provided by Crossbeam. An alternative ...
  4. Mar 23, 2024Atomically swappable Arc | Rust/Cargo package. 4,746,813 downloads per month Used in 1,836 crates (198 directly). MIT/Apache. 185KB 2K SLoC ArcSwap. This provides something similar to what RwLock<Arc<T>> is or what Atomic<Arc<T>> would be if it existed, optimized for read-mostly write-seldom scenarios, with consistent performance characteristics.. Read the documentation before using.
  5. serializable (ACID) transactions for atomically reading and writing to multiple keys in multiple keyspaces. fully atomic single-key operations, including compare and swap; zero-copy reads; write batches; subscribe to changes on key prefixes; multiple keyspaces; merge operators; forward and reverse iterators over ranges of items
  6. Jan 7, 20241,751 downloads per month . MIT license . 9KB 141 lines. Provides an atomic pointer to an [Arc]The AtomicArc is an AtomicPtr to an [Arc], supporting atomic swap and store operations.The underlying [Arc] reference counts manage deallocation of the underlying memory whereas the AtomicArc manages which underlying [Arc] is loaded by a thread at any point in time.
  7. Jan 6, 2025If you want to atomically initialize and insert a value when the key is not present, you might want to check the document for other insertion methods get_with and try_get_with. Example: Asynchronous Cache. The asynchronous (futures aware) cache is defined in the future module. It works with asynchronous runtime such as Tokio, async-std or actix-rt.
  8. May 24, 2024RwLock supports atomically upgrading an "upgradable" read lock into a write lock. Optional support for serde. Enable via the feature serde. NOTE! this support is for Mutex, ReentrantMutex, and RwLock only; Condvar and Once are not currently supported. Lock guards can be sent to other threads when the send_guard feature is enabled. The parking lot
  9. Sep 4, 2023Replaces files atomically and it's safe to interrupt at any time. Proven to be reliable. Used for years without an issue. It's aware of existing hardlinks and supports merging of multiple groups of hardlinks. Gracefully handles symlinks and special files. Usage. Download binaries from the releases page. Works on macOS and Linux. Windows is not ...
  10. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX