xref: /DragonOS/kernel/src/libs/wait_queue.rs (revision 728aca308917a7d4d0ba10fe8174e9408d77a9a6)
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 }