Skip to content

add mutable concurrent containers (queues, priority queues, non-contiguous vector, hashmap) #10580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thestinger opened this issue Nov 20, 2013 · 2 comments
Labels
metabug Issues about issues themselves ("bugs about bugs")

Comments

@thestinger
Copy link
Contributor

I'm not sure how to handle concurrent containers in the standard library. In a 1:1 threading situation, it's best to use the native mutex and condition variable types because they're highly optimized. On Linux, they only actually need to do a system call when there's contention or consumer exhaustion because they spin a bit before waiting on futex.

The standard library has a form of M:N queues already, but they block on the scheduler so they aren't going to work well for 1:1 threading.

https://github.com/thestinger/rust-core/blob/master/core/concurrent.rs (blocking bounded/unbounded queues and priority queues with native synchronization primitives)

@reem
Copy link
Contributor

reem commented Sep 3, 2014

Triage. Would absolutely be useful, but could probably live as a cargo package for a while before it needs to be in std.

@steveklabnik
Copy link
Member

I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.

This issue has been moved to the RFCs repo: rust-lang/rfcs#857

flip1995 pushed a commit to flip1995/rust that referenced this issue May 20, 2023
… r=flip1995

fix: `wildcard_imports` ignore `test.rs` files

Adds a check to see if the building crate is a test one, if so, ignore it

---

Closes rust-lang#10580
changelog:[`wildcard_imports`]: Add a check to ignore files named `test.rs` and `tests.rs`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metabug Issues about issues themselves ("bugs about bugs")
Projects
None yet
Development

No branches or pull requests

3 participants