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 Locking Abstractions #53

Merged
merged 7 commits into from
Jul 21, 2024
Merged

Add Locking Abstractions #53

merged 7 commits into from
Jul 21, 2024

Conversation

nibanks
Copy link
Member

@nibanks nibanks commented Jul 20, 2024

When we get the CxPlatAsync PR merged we can more easily add more tests using parallel threads to validate locking.

@nibanks nibanks added the enhancement New feature or request label Jul 20, 2024
struct CxPlatEvent {
CXPLAT_EVENT Handle;
CxPlatEvent() noexcept { CxPlatEventInitialize(&Handle, FALSE, FALSE); }
CxPlatEvent(bool ManualReset) noexcept { CxPlatEventInitialize(&Handle, ManualReset, FALSE); }
CxPlatEvent(CXPLAT_EVENT event) noexcept : Handle(event) { }
~CxPlatEvent() noexcept { CxPlatEventUninitialize(Handle); }
CXPLAT_EVENT* operator &() noexcept { return &Handle; }
Copy link
Member Author

Choose a reason for hiding this comment

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

Unnecessary, and actually broke passing a pointer to this struct.

@nibanks nibanks merged commit 7130e1b into main Jul 21, 2024
75 checks passed
@nibanks nibanks deleted the cxplatlock branch July 21, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant