File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -506,8 +506,7 @@ impl<T> CSShardedRingBuf<T> {
506506 /// Clears the buffer back to an empty state
507507 ///
508508 /// Note: This function is not safe to use within a multithreaded
509- /// multitask environment. If you need to clear while performing concurrent
510- /// tasks, use [Self::async_clear]
509+ /// multitask environment.
511510 ///
512511 /// Time Complexity: O(s * c_s) where s is the num of shards,
513512 /// c_s is the capacity per shard
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ enum Acquire {
2727/// In theory, a fully lock-free multi-ringbuffer data structure is possible
2828/// with a lock free waitlist of wakers (think of lock free unbounded FIFO queue using a doubly linked list
2929/// or even a stack-based style using a lock free singly linked list).
30- /// I would imagine this would be faster than using Mutex<Waitlist> because, in most cases,
30+ /// I would imagine this would be faster than using ` Mutex<Waitlist>` because, in most cases,
3131/// you would be able to add a push a new waiter at the head of the queue whilst popping a waiter from the back
3232/// end of the queue when you notify one waiter. However, the performance shouldn't significantly change as a
3333/// result.
Original file line number Diff line number Diff line change @@ -752,8 +752,7 @@ impl<T> ShardedRingBuf<T> {
752752 /// Clears the buffer back to an empty state
753753 ///
754754 /// Note: This function is not safe to use within a multithreaded
755- /// multitask environment. If you need to clear while performing concurrent
756- /// tasks, use [Self::async_clear]
755+ /// multitask environment.
757756 ///
758757 /// Time Complexity: O(s * c_s) where s is the num of shards,
759758 /// c_s is the capacity per shard
You can’t perform that action at this time.
0 commit comments