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

Extract the Events struct and make the Event struct opaque #133

Merged
merged 8 commits into from
Aug 14, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Aug 9, 2023

This prevents the need to have an intermediate buffer to read events
from, reducing the need for an allocation and a copy. This is a breaking
change.

Signed-off-by: John Nunley <[email protected]>
Foundation for more details later on.

Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
src/iocp/mod.rs Outdated Show resolved Hide resolved
src/epoll.rs Outdated Show resolved Hide resolved
tests/other_modes.rs Outdated Show resolved Hide resolved
@fogti
Copy link
Member

fogti commented Aug 11, 2023

Imo it would be a good idea to squash all the doctest fixups before merging.

- Make sure that waitable handles interact properly with the new
  infrastructure
- Fix failing doctests

Signed-off-by: John Nunley <[email protected]>
- Make set_* take a boolean for the value of the flag
- Make Events !Sync
- Fix visibility modifiers
- Inline more methods
- Use a better strategy for testing

Signed-off-by: John Nunley <[email protected]>
src/iocp/mod.rs Outdated Show resolved Hide resolved
src/iocp/mod.rs Outdated Show resolved Hide resolved
This removes one of the mutexes that we have to lock.

Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Copy link
Member

@fogti fogti left a comment

Choose a reason for hiding this comment

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

LGTM

@notgull notgull merged commit a521cd2 into master Aug 14, 2023
24 checks passed
@notgull notgull deleted the notgull/opaque-events branch August 14, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Enable HUP tracking in Event Expose the Events structure instead of using Vec<Event>
2 participants