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

Let SetOnceNamedEvent wait for confirmation #253

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

CarlosNihelton
Copy link
Collaborator

Calling SetEvent may return quickly enough so that the event HANDLE is closed without the other end receiving the notification.
SignalObjectAndWait let's us wait for the same event we are setting, so that we only proceed when the OS really delivered the notification.

Calling SetEvent may return quickly enough so that the event is closed without the other end receiving the notification.
SignalObjectAndWait let's us wait for the same event we are setting, so that we only proceed when the OS really delivered the notification
@CarlosNihelton CarlosNihelton marked this pull request as ready for review July 28, 2022 18:47
Copy link
Collaborator

@EduardGomezEscandell EduardGomezEscandell left a comment

Choose a reason for hiding this comment

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

👌

@CarlosNihelton CarlosNihelton merged commit 32918d0 into main Jul 29, 2022
@CarlosNihelton CarlosNihelton deleted the fix-named-event-wait branch July 29, 2022 09:53
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.

None yet

2 participants