Crates.io | wfbuf |
lib.rs | wfbuf |
version | 0.1.1 |
source | src |
created_at | 2015-11-05 22:16:50.296784 |
updated_at | 2016-06-16 08:29:01.260324 |
description | Naive wait free buffer for fast interprocess data streaming on linux. |
homepage | |
repository | https://bitbucket.org/almikhayl/wfbuf |
max_upload_size | |
id | 3370 |
size | 4,978 |
This crate allow to create mmaped shared anonymous regions of memory, place WfBuf<T: Copy> into it using rust placement protocol and use it for data streaming between parent and forked child process. Works only on linux.
Implementation is naive and may be unsound. Stricly for one reader and one writer. There is no queueing, only last written value is read. Implementation try to ensure that at the moment of reading value, reader is accessing the latest written value. You can see how it may be used in tests module in lib.rs.