File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ impl<T> Drop for FastQueue<T> {
191191 }
192192}
193193
194- /// A producer for the `FastQueue`. This is used to push values into the queue.
194+ /// A producer for the `FastQueue`. This is used to send elements to the queue.
195195pub struct Producer < T > {
196196 queue : CachePadded < Arc < FastQueue < T > > > ,
197197 head : CachePadded < UnsafeCell < usize > > ,
@@ -201,6 +201,7 @@ pub struct Producer<T> {
201201
202202unsafe impl < T : Send > Send for Producer < T > { }
203203
204+ /// A producer for the `FastQueue`. This is used to send elements to the queue.
204205impl < T > Producer < T > {
205206 /// Pushes a value into the queue. Returns `Ok(())` on success or `Err(T)` if the queue is full.
206207 ///
@@ -318,6 +319,7 @@ impl<T> Producer<T> {
318319 }
319320}
320321
322+ /// A consumer for the `FastQueue`. This is used to receive items from the queue.
321323pub struct Consumer < T > {
322324 queue : CachePadded < Arc < FastQueue < T > > > ,
323325 tail : CachePadded < UnsafeCell < usize > > ,
@@ -327,7 +329,7 @@ pub struct Consumer<T> {
327329
328330unsafe impl < T : Send > Send for Consumer < T > { }
329331
330- /// A consumer for the `FastQueue`. This is used to pop values from the queue.
332+ /// A consumer for the `FastQueue`. This is used to receive items from the queue.
331333impl < T > Consumer < T > {
332334 /// Pops a value from the queue. Returns `Some(T)` on success or `None` if the queue is empty.
333335 ///
You can’t perform that action at this time.
0 commit comments