-
Notifications
You must be signed in to change notification settings - Fork 8
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
Callback Deregistration #224
Conversation
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
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.
Just a few small suggestions and nit picks, but this is completely awesome 💯
windows/devices/uwb/include/windows/devices/uwb/UwbConnector.hxx
Outdated
Show resolved
Hide resolved
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.
Still some minor changes that could be made (such as changing return type of InsertDeviceEventCallback to std::weak_ptr), but nothing that affects functionality, so it seems good to go
…r.hxx, and check for session event callback first
08aecba
Type
Goals
Allow the deregistration of callbacks
Technical Details
Test Results
Reviewer Focus
Currently the interface maintains the invariant that m_tokens, m_[session|device]EventCallbacks, and m_[session|device]EventCallbacksIdMap are always in sync. However, this may result in a slow runtime for GetResolved[Session|Device]EventCallbacks(). Consider if relaxing that invariant makes sense.
Future Work
Checklist
all
compiles cleanly.