Crates.io | real-time |
lib.rs | real-time |
version | 0.6.0 |
source | src |
created_at | 2023-10-22 22:19:55.279263 |
updated_at | 2024-10-27 12:52:08.224315 |
description | Safely share data with a real-time thread. |
homepage | |
repository | |
max_upload_size | |
id | 1010820 |
size | 54,614 |
Safely share data with a real-time thread.
This crate provides some tools for sharing data with a real-time thread:
Shared Values
Type wrappers that can be used to share values between a real-time thread and another thread, in a way that is real-time safe.
They use the same algorithms as RealtimeObject
from FAbian's Realtime Box o' Tricks, that
was presented at Meeting C++ 2019.
RealtimeReader
, for reading from a shared value on a real-time thread.RealtimeWriter
, for writing to a shared value on a real-time thread.FIFOs
fifo
, a lock-free single-producer, single-consumer FIFO that is optimised for a real-time consumer.Add this to your Cargo.toml
:
[dependencies]
real-time = "0.6"
Licensed under either of
at your option.
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.