mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
11 lines
265 B
Rust
11 lines
265 B
Rust
use tokio::sync::Semaphore;
|
|
use yazi_shared::RoCell;
|
|
|
|
pub static HIDER: RoCell<Semaphore> = RoCell::new();
|
|
|
|
pub static WATCHER: RoCell<Semaphore> = RoCell::new();
|
|
|
|
pub(super) fn init_semaphore() {
|
|
HIDER.init(Semaphore::new(1));
|
|
WATCHER.init(Semaphore::new(1));
|
|
}
|