提交 2050816e authored 作者: Serhij S's avatar Serhij S

locking via parking-lot-rt on non-linux

上级 ded39954
...@@ -53,6 +53,9 @@ once_cell = { version = "1.19.0", optional = true } ...@@ -53,6 +53,9 @@ once_cell = { version = "1.19.0", optional = true }
parking_lot = { version = "0.12.3", optional = true } parking_lot = { version = "0.12.3", optional = true }
parking_lot_rt = { version = "0.12.1", optional = true } parking_lot_rt = { version = "0.12.1", optional = true }
[target.'cfg(windows)'.dependencies]
parking_lot_rt = { version = "0.12.1" }
[features] [features]
eapi = ["eva-common", "eva-sdk", "busrt", "tokio", "hostname", "once_cell"] eapi = ["eva-common", "eva-sdk", "busrt", "tokio", "hostname", "once_cell"]
pipe = ["tokio/process", "tokio/io-util", "tokio/macros", "tokio/rt", "tokio/time"] pipe = ["tokio/process", "tokio/io-util", "tokio/macros", "tokio/rt", "tokio/time"]
......
...@@ -17,7 +17,9 @@ pub use parking_lot as locking; ...@@ -17,7 +17,9 @@ pub use parking_lot as locking;
#[cfg(feature = "locking-rt")] #[cfg(feature = "locking-rt")]
pub use parking_lot_rt as locking; pub use parking_lot_rt as locking;
#[cfg(feature = "locking-rt-safe")] #[cfg(all(feature = "locking-rt-safe", not(target_os = "linux")))]
pub use parking_lot_rt as locking;
#[cfg(all(feature = "locking-rt-safe", target_os = "linux"))]
pub use rtsc::pi as locking; pub use rtsc::pi as locking;
#[cfg(feature = "metrics")] #[cfg(feature = "metrics")]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论