xref: /DragonOS/kernel/src/libs/wait_queue.rs (revision 2291ffdece1dc5a703602f79f74df8a4854d215b) !
1 use crate::include::bindings::bindings::{wait_queue_head_t};
2 
3 use super::{list::list_init};
4 
5 
6 impl Default for wait_queue_head_t{
7     fn default() -> Self {
8         let mut x = Self { wait_list: Default::default(), lock: Default::default() };
9         list_init(&mut x.wait_list);
10         return x;
11     }
12 }