| Crates.io | orx-pinned-concurrent-col |
| lib.rs | orx-pinned-concurrent-col |
| version | 2.15.0 |
| created_at | 2024-04-12 03:10:26.970946+00 |
| updated_at | 2025-09-09 08:51:30.067501+00 |
| description | A core data structure with a focus to enable high performance, possibly lock-free, concurrent collections using a PinnedVec as the underlying storage. |
| homepage | |
| repository | https://github.com/orxfun/orx-pinned-concurrent-col/ |
| max_upload_size | |
| id | 1205923 |
| size | 87,392 |
A core data structure with a focus to enable high performance lock-free concurrent collections using a PinnedVec as the underlying storage.
Pinned vectors grow while keeping the already pushed elements pinned to their memory locations. This allows the following concurrency model.
PinnedConcurrentCol itself does not provide guarantees for race-free writing; and hence, the write methods are marked unsafe.Pinned concurrent collection exposes the methods that can be used differently for different requirements and marks the methods which can lead to race conditions as unsafe by stating the underlying reasons. This enables building safe wrappers such as ConcurrentBag, ConcurrentOrderedBag or ConcurrentVec.
Contributions are welcome! If you notice an error, have a question or think something could be improved, please open an issue or create a PR.
Dual-licensed under Apache 2.0 or MIT.