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