Registry / async / parking-lot-core

parking-lot-core

JSON →
library0.9.12rscratesunverified

An advanced API for creating custom synchronization primitives.

# Cargo.toml [dependencies] parking_lot_core = "0.9.12"
INSTALL
IMPORT
SIG · PARKING-LOT-CORE
P
parking-lot-core
asyncrustv0.9.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpinWait
use parking_lot_core::SpinWait;

Use SpinWait for efficient spinning.

use parking_lot_core::SpinWait; fn main() { let mut spin = SpinWait::new(); while !spin.spin() { // busy-wait } }
Debug
Known issues
gotchaThis crate is a low-level building block; prefer parking_lot for most use cases.
fix
Use the parking_lot crate instead for common synchronization primitives.
affects: >=0.9.0
Upgrade
Version history
0.9.12latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
Amazon
1
Resources
parking-lot-core — cargo add parking-lot-core · libregistry