Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
bitcoinleveldb-sync
bitcoinleveldb-sync is a Rust library designed for synchronizing access to resources using a custom lock mechanism. This crate utilizes low-level, high-performance locking principles and is ideal for scenarios that require precise, synchronous control over concurrency.
Overview
This crate provides a synchronization primitive: MutexLock, which relies on a low-level parking_lot::RawMutex. This allows for more granular control over locking behavior compared to standard library mutexes. Users are responsible for ensuring correctness when employing these advanced locking techniques.
Core Features
- Scoped Locking: The
MutexLockis scoped, automatically releasing the lock when it goes out of scope, preventing deadlocks. - High-Performance: Utilizing
parking_lotfor highly efficient lock operations suitable for performance-critical applications.
Usage
Here is an example of using MutexLock:
use RawMutex;
let raw_mutex = INIT;
// The lock is automatically released here.
Safety
-
The
MutexLockrequires users to provide raw pointers toparking_lot::RawMutex. Proper pointer management and safety practices are expected. -
Panic Safety: The constructor will panic if given a null pointer.
Contributing
Contributions and issues are welcome. Please see the repository for more information.