Home
last modified time | relevance | path

Searched refs:DropGuard (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/getrandom/src/
Duse_file.rs70 let _guard = DropGuard(|| unsafe { MUTEX.unlock() }); in get_rng_fd()
98 let _guard = DropGuard(|| unsafe { in wait_until_rng_ready()
135 struct DropGuard<F: FnMut()>(F); struct
137 impl<F: FnMut()> Drop for DropGuard<F> { implementation
/external/rust/crates/async-task/tests/
Dbasic.rs268 struct DropGuard(AtomicUsize); in drop_inside_schedule() struct
269 impl Drop for DropGuard { in drop_inside_schedule() implementation
274 let guard = DropGuard(AtomicUsize::new(0)); in drop_inside_schedule()