Skip to content

Commit

Permalink
fix missing docs
Browse files Browse the repository at this point in the history
Signed-off-by: guoweikang <[email protected]>
  • Loading branch information
guoweikang committed Oct 16, 2024
1 parent ce90683 commit 4634a3e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions modules/axtask/src/wait_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ use crate::wait_list::{WaitTaskList, WaitTaskNode};
#[cfg(feature = "irq")]
use crate::CurrentTask;

macro_rules! declare_current_waiter {
($name: ident) => {
let $name = Arc::new(WaitTaskNode::new($crate::current().as_task_ref().clone()));
};
}

/// A queue to store sleeping tasks.
///
/// # Examples
Expand All @@ -31,14 +37,6 @@ use crate::CurrentTask;
/// WQ.wait(); // block until `notify()` is called
/// assert_eq!(VALUE.load(Ordering::Relaxed), 1);
/// ```

macro_rules! declare_current_waiter {
($name: ident) => {
let $name = Arc::new(WaitTaskNode::new($crate::current().as_task_ref().clone()));
};
}


pub struct WaitQueue {
queue: SpinNoIrq<WaitTaskList>,
}
Expand Down

0 comments on commit 4634a3e

Please sign in to comment.