Skip to content

[DO NOT CLOSE] Shared Memory Logging#16

Draft
gitfish7 wants to merge 6 commits into
masterfrom
gitfish7/kbot/experiment/shm-messaging-iceoryx2
Draft

[DO NOT CLOSE] Shared Memory Logging#16
gitfish7 wants to merge 6 commits into
masterfrom
gitfish7/kbot/experiment/shm-messaging-iceoryx2

Conversation

@gitfish7

Copy link
Copy Markdown
Contributor

Problem

Sending data around is hard

Solution

We will use a pub sub style shared memory data transfer method. For now this will be used to log data to disk and nothing else. In the future, as we make everything into components. We will use the shared memory pathways to talk between componenents.

Notes

  • DO NOT CLOSE: this is a relatively long running effort and I want to make sure things are robust before we merge.

@gitfish7 gitfish7 marked this pull request as draft July 24, 2025 05:57
@gitfish7 gitfish7 changed the title Shared Memory Logging [DO NOT CLOSE] Shared Memory Logging Jul 24, 2025
@gitfish7 gitfish7 requested review from AJ-Williams1 and nfreq July 24, 2025 05:57
Comment thread src/keyboard.rs
) -> std::io::Result<()> {
// drain the buffered events
while event::poll(Duration::from_millis(0))? {
if let event::Event::Key(key) = event::read()? {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change should have been picked up by clippy earlier, not sure why it got missed

let mut batch_buf: Vec<u8> = Vec::with_capacity(BUF_SIZE);

while let Ok(evt) = rx.recv() {
// first receive random data

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some cleanup needed :')

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants