https://github.com/vorner/adaptive-barrier
Similar to std::sync::Barrier, but automatically adjusts to the number of subscribers
https://github.com/vorner/adaptive-barrier
Last synced: 4 months ago
JSON representation
Similar to std::sync::Barrier, but automatically adjusts to the number of subscribers
- Host: GitHub
- URL: https://github.com/vorner/adaptive-barrier
- Owner: vorner
- License: apache-2.0
- Created: 2020-12-25T18:41:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-12T07:30:16.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T12:06:31.315Z (over 1 year ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Adaptive barrier
[](https://github.com/vorner/adaptive-barrier/actions)
[](https://codecov.io/gh/vorner/adaptive-barrier)
[](https://docs.rs/adaptive-barrier)
A Barrier synchronization primitive, similar to `std::sync::Barrier`, but one
that adjusts the expected number of threads. This makes it robust in face of
panics (it won't make your program deadlock, like the standard `Barrier`).
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms
or conditions.