Skip to content

Add logic to address threading issues with writing from memory access#17

Merged
khauersp merged 3 commits intomasterfrom
feature/address-dm14-write-issue
Feb 4, 2026
Merged

Add logic to address threading issues with writing from memory access#17
khauersp merged 3 commits intomasterfrom
feature/address-dm14-write-issue

Conversation

@khauersp
Copy link
Owner

We discovered a pretty nasty bug in the memory access class when it came to responding to write requests. We were never receiving the data to be written even though it was being seen on the bus. Turns out the blocking get in the dm14 sever was blocking the reception of the data. This is because the memory access _listen for dm14 was being called from the receive thread of the bus, but then the notifiy function (which was calling the respond method) was also being called from within the receive thread which then led to that thread getting blocked when we wait for the data. So the patch for that issue was to make a servicer thread that monitors when to call the notify function so that it will be called from a different thread and not block the receive thread.

@khauersp khauersp merged commit 01aba95 into master Feb 4, 2026
3 checks passed
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.

1 participant