Skip to content

Commit b24c84f

Browse files
committed
more doc updates
1 parent 4f74feb commit b24c84f

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/cs_srb/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

src/mlf_srb/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

src/srb/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)