rustex
not-enough-standards
rustex | not-enough-standards | |
---|---|---|
3 | 1 | |
10 | 229 | |
- | - | |
0.0 | 0.0 | |
4 months ago | 5 months ago | |
C++ | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rustex
-
The Binder Linux driver is being rewritten in Rust
Rust-style locks definitely raise the bar, and I wish more languages adopted this - like this https://news.ycombinator.com/item?id=35464152 or https://github.com/dragazo/rustex
-
MutexProtected: A C++ Pattern for Easier Concurrency
Adding my favorite to the pile: https://github.com/dragazo/rustex
-
Need advice designing threaded API
I suggest having a generic outer wrapper type, that you need to lock to acquire the inner data type pointer. When the inner data type pointer goes out of scope the lock is freed like a lock guard. This is super simple, and keeps the locking separate from the logic of you class, and can easily be applied to other classes. You also can't accidentally forget to lock the class before calling inner methods. This is how Rust does mutexes, and there is a cpp implementation of this style of API: https://github.com/dragazo/rustex
not-enough-standards
What are some alternatives?
chromium - The official GitHub mirror of the Chromium source
thread-pool - A modern, fast, lightweight thread pool library based on C++20
sdk - SDK files for building i-score
Lazy - Light-weight header-only library for parallel function calls and continuations in C++ based on Eric Niebler's talk at CppCon 2019.
Folly - An open-source C++ library developed and used at Facebook.
parity-tokio-ipc - Parity tokio-ipc
serenity - The Serenity Operating System 🐞
parallel-cellular-automata - Framework for building parallel cellular automata in C++. In it you can also find a work-stealing threadpool and a reusable barrier that you can use in other projects.
modern-cpp-tutorial - 📚 Modern C++ Tutorial: C++11/14/17/20 On the Fly | https://changkun.de/modern-cpp/
ALib - Modern C++ header only library featuring various utility functions.