Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let TcpIp and CoAP channels only write to the internal state from their unified worker thread. #183

Open
LasseRosenow opened this issue Jan 9, 2025 · 2 comments
Assignees

Comments

@LasseRosenow
Copy link
Collaborator

Right now the TcpIpChannel edits the internal state from the open_connection and close_connection function. The same is true for the CoapUdpIpChannel. The CoapUdpIpChannel also edits the state from within the gcoap internal state through callbacks additionally. Maybe this can be fixed using messages between the threads?

@LasseRosenow
Copy link
Collaborator Author

@erling I ping you since you found this issue. I also mentioned it in my comment on my CoapExamples PR :)

@LasseRosenow LasseRosenow self-assigned this Jan 9, 2025
@erlingrj
Copy link
Collaborator

Or we just use a mutex

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

No branches or pull requests

2 participants