GitXplorerGitXplorer
m

comm

public
67 stars
10 forks
8 issues

Commits

List of commits on branch master.
Unverified
b38695e3ee226cf526723fff927df256bfb16771

Merge pull request #26 from c0b/patch-1

mmahkoh committed 7 years ago
Unverified
8748085415d09c9d1bc51dea00bf3ad4c17c18f3

change one character to fix the table

cc0b committed 7 years ago
Unverified
a7b96032d56678c9923338345d2c47e8193c83c4

Merge pull request #25 from pfpacket/fix-build

mmahkoh committed 9 years ago
Unverified
fc925206f717837ccf69da1b1bffd78ad89fc19a

Use alloc::heap instead of std::rt::heap

ppfpacket committed 9 years ago
Unverified
5b1f2f89d893152984264f907b846cc10743c0cb

Merge pull request #24 from pfpacket/fix-build

mmahkoh committed 9 years ago
Unverified
fe6b8ddd6b696e049d8e3151a43516915b42fc23

Remove unneeded 'duration' feature

ppfpacket committed 9 years ago

README

The README file for this repository.

comm

Primitives for inter-thread communication. See the documentation for a list of features provided by this crate.

Documentation

Comparison with the std::sync implementation

_ std::sync comm
Restricted by stability guarantees 1
Users can use their own channels with Select
Select has a safe interface
Select can poll all channels in a vector without borrowing the vector
Select can be used concurrently from multiple threads
Select will be available in 1.0
Contains hot, experimental channels
Extensively tested and optimized
Web-Scale 2

1Stability as a Deliverable
2Uses the epoll design.

In general: Channels in Rust don't need and don't have special compiler support. Therefore, channels in the official distribution have all the restrictions that come with the stdlib without getting any benefits (unlike Go channels which are tightly integrated with the language.)

Usage

To use comm, first add this to your Cargo.toml:

[dependencies.comm]
git = "https://github.com/mahkoh/comm"

comm is currently not on Crates.io.

Then add this to your crate root:

extern crate comm;

Bugs

There are some tests but, given the nature of multi-threaded code, some bugs might only show up in production.

License

MIT