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

Contiki: Post a dedicated event when scheduling an immediate prepare_io #1535

Closed
wants to merge 1 commit into from

Conversation

kkrentz
Copy link
Contributor

@kkrentz kkrentz commented Oct 21, 2024

I realized that, e.g., button drivers, broadcast a PROCESS_EVENT_POLL. This causes all processes to wake up, including our libcoap_io_process. Moreover, enclosed data will be treated as a coap_context_t *. This PR fixes this issue by allocating a dedicated event.

@kkrentz kkrentz marked this pull request as draft October 21, 2024 14:39
@mrdeep1 mrdeep1 marked this pull request as ready for review October 21, 2024 14:54
@mrdeep1
Copy link
Collaborator

mrdeep1 commented Oct 21, 2024

In principle looks fine to me without doing any testing. Frustrating that it is not possible to release the dedicated event.

@kkrentz
Copy link
Contributor Author

kkrentz commented Oct 21, 2024

My bad. In the official code base nobody is broadcasting a PROCESS_EVENT_POLL and it would probably break many other things, too.

@kkrentz kkrentz closed this Oct 21, 2024
@kkrentz kkrentz deleted the event-pr branch October 21, 2024 19:21
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