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 handles for events #45

Merged
merged 2 commits into from
Sep 14, 2024
Merged

add handles for events #45

merged 2 commits into from
Sep 14, 2024

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Sep 14, 2024

Which makes CreateEventA works when called without a name, and also implements SetEvent

@LinusU LinusU mentioned this pull request Sep 14, 2024
27 tasks
@@ -211,6 +211,8 @@ pub struct State {
pub resources: pe::IMAGE_DATA_DIRECTORY,
pub resource_handles: Handles<HRSRC, ResourceHandle>,

pub event_handles: Handles<HEVENT, EventHandle>,
Copy link
Owner

Choose a reason for hiding this comment

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

It looks like I was inconsistent about the _handles suffix between resource_handles vs files, whoops! No problem either way I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I tried to fit in as much as possible. I believe that before I added resource_handles there was one with _handles and one without, but because resources was already taken I used the suffix. And that made it so that there was two _handles and only one without when I wrote this code 😄

win32/src/winapi/kernel32/sync.rs Outdated Show resolved Hide resolved
win32/src/winapi/kernel32/sync.rs Outdated Show resolved Hide resolved
@LinusU
Copy link
Contributor Author

LinusU commented Sep 14, 2024

rebased on master and adressed comments ✅

Happy to change event_handles vs. events also if you want to?

@evmar evmar merged commit e90a8c7 into evmar:main Sep 14, 2024
@evmar
Copy link
Owner

evmar commented Sep 14, 2024

I will revisit the names later, it's easy enough to change :)

@LinusU LinusU deleted the CreateEventA branch September 14, 2024 21:12
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