-
Notifications
You must be signed in to change notification settings - Fork 47
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
Abstraction on top of Win32 Named Events that can be set only once #242
Conversation
243471d
to
3cad66e
Compare
7c095e4
to
73c284d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not usually a purist of noexcepts, but this codebase is quite cool in that they are thoroughly used, so I'd try to keep it that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy
in the new code
clang-format
found formatting issues in the code submitted.:warning:
Make sure to run clang-format and update this pull request.
(1/1)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The build workflow is failing due an issue in the flutter action. I'll push another PR to fix the action version temporarily until the upstream is fixed. |
Abstract
An abstraction on top of Win32 Named Events that can be set only once.
Usage
Ensure a unique name is used for its initialization. This is an IPC mechanism, so other processes will find it.
When something interesting happens and you want to let the world know about it, set the event:
That's it. From now on the variable is useless. The event remains valid from a succesfull construction until
it's set.
That will be used to notify the OOBE of the distro registration completion as well as to kindly ask it to quit, events that by nature happens at most once.