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

notgull added 4 commits August 8, 2023 20:53
Signed-off-by: John Nunley <dev@notgull.net>
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 <dev@notgull.net>
Foundation for more details later on.

Signed-off-by: John Nunley <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
@notgull notgull force-pushed the notgull/opaque-events branch from 8983311 to c962381 Compare August 9, 2023 03:58
@notgull notgull requested a review from fogti August 10, 2023 02:38
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 <dev@notgull.net>
- 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 <dev@notgull.net>
@notgull notgull force-pushed the notgull/opaque-events branch from 8708878 to 1a10d2a Compare August 12, 2023 15:53
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 <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
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
@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