Skip to content

Commit 460a8d9

Browse files
committed
multicast replaced with broadcast as more widespread in Rust ecosystem.
1 parent 1e44ee7 commit 460a8d9

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ license = "MIT OR Apache-2.0"
55
edition = "2021"
66
exclude = ["benchmarks", "doc"]
77
repository = "https://github.com/tower120/chute"
8-
description = "Lockfree mpmc/spmc multicast queue."
8+
description = "Lockfree mpmc/spmc broadcast queue."
99
categories = ["concurrency", "data-structures"]
10-
keywords = ["lockfree", "mpmc", "spmc", "multicast", "queue"]
10+
keywords = ["lockfree", "mpmc", "spmc", "broadcast", "queue"]
1111

1212
[dependencies]
1313
branch_hints = "0.4"

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
![Queue illustration](doc/img/mpmc_white.png)
1010

11-
An mpmc[^mpmc]/spmc[^spmc] lock-free multicast[^broadcast] queue.
11+
An mpmc[^mpmc]/spmc[^spmc] lock-free broadcast[^broadcast] queue.
1212

1313
[^mpmc]: Multi-producer multi-consumer.
1414

1515
[^spmc]: Single-producer multi-consumer.
1616

17-
[^broadcast]: Also known as a broadcast queue. Each consumer gets
17+
[^broadcast]: Also known as a multicast queue. Each consumer gets
1818
every message sent to queue, from the moment of subscription.
1919

2020
* Lock-free consumers without overhead[^lockfree_overhead].

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
//! Multi-producer multi-consumer lock-free multicast[^multicast] queue.
1+
//! Multi-producer multi-consumer lock-free multicast queue[^multicast].
22
//!
3-
//! [^multicast]: Each consumer gets every message sent to queue, from the moment of subscription.
3+
//! [^multicast]: Or broadcast queue. Each consumer gets every message sent
4+
//! to queue, from the moment of subscription.
45
//!
5-
//! Memory-wise all consumers works with the same shared data blocks, so there
6-
//! is no duplication.
6+
//! Memory-wise all consumers work with the same shared data blocks, so there
7+
//! is no duplication. Queue is unbounded - it grows and shrinks dynamically as needed.
78
//!
89
//! Read performance is **stellar** - there is only one atomic read per block.
910
//! Most of the time - this is just plain continuous data reading.

0 commit comments

Comments
 (0)