From 4b940520d5395ceb73ba3cb9706fc89039708626 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Fri, 26 Aug 2022 19:28:41 -0700 Subject: Fix mutex acquire --- src/util/queue.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util') diff --git a/src/util/queue.rs b/src/util/queue.rs index 56122f7..ac23011 100644 --- a/src/util/queue.rs +++ b/src/util/queue.rs @@ -1,8 +1,14 @@ +//! # Queue type use super::node::Node; +/// # Queue Trait pub trait Queue<'a> { + /// # Data encapsulated type Data; + /// # Initialize fn init(&self); + /// # Pop fn pop(&self) -> Option<&mut Node<'a, Self::Data>>; + /// # Push fn push(&self, freed_item: &mut Node<'a, Self::Data>); } -- cgit v1.2.1