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

Add wake up function to packet loop #1633

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Add wake up function to packet loop #1633

merged 6 commits into from
Feb 13, 2024

Conversation

huitema
Copy link
Collaborator

@huitema huitema commented Feb 13, 2024

This PR adds new API to create a background thread handling the packet loop, to wake up that thread and for example create a new data stream, and to delete the thread.

The first commit simply adds the API, and tests that the old way of running a network loop in line with the app still works.

@notBroman
Copy link
Collaborator

Would it be appreciated if I wrote some documentation around this and the non-threaded socket loop (in a separate branch that can be merged into whatever branch makes sense)?

@huitema
Copy link
Collaborator Author

huitema commented Feb 13, 2024

@notBroman yes, documenting the use of the background thread would be very nice! There is minimal documentation in the header file, but an actual doc would help!

@huitema
Copy link
Collaborator Author

huitema commented Feb 13, 2024

Tests are passing. Merging now, so we get feedback from developers.

@huitema huitema merged commit ae33700 into master Feb 13, 2024
11 checks passed
@huitema huitema deleted the wake-sock-loop branch June 5, 2024 19:13
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