Minimal parking_lot support

This commit is contained in:
2021-05-27 21:04:49 +02:00
parent b21a63e74b
commit 73b4c8b1af
3 changed files with 64 additions and 0 deletions

View File

@@ -62,12 +62,16 @@ use std::sync::PoisonError;
use lazy_static::lazy_static;
#[cfg(feature = "lockapi")]
pub use lock_api;
#[cfg(feature = "parkinglot")]
pub use parking_lot;
use crate::graph::DiGraph;
mod graph;
#[cfg(feature = "lockapi")]
pub mod lockapi;
#[cfg(feature = "lockapi")]
pub mod parkinglot;
pub mod stdsync;
/// Counter for Mutex IDs. Atomic avoids the need for locking.