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

bluetooth: mesh: settings: update k_work API #33156

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

pabigot
Copy link
Collaborator

@pabigot pabigot commented Mar 8, 2021

Switch to new work API, taking advantage of the difference between
schedule and reschedule to force an update if the new deadline is
sooner, and retain any previous deadline (or use the new deadline) if
it isn't. Do not leave a path out that could, due to races, fail to
schedule necessary work.

Signed-off-by: Peter Bigot [email protected]

@pabigot
Copy link
Collaborator Author

pabigot commented Mar 8, 2021

Note to reviewers: in the absence of a meaningful sample I can't test this; please verify that it works.

Switch to new work API, taking advantage of the difference between
schedule and reschedule to force an update if the new deadline is
sooner, and retain any previous deadline (or use the new deadline) if
it isn't.  Do not leave a path out that could, due to races, fail to
schedule necessary work.

Signed-off-by: Peter Bigot <[email protected]>
@jhedberg jhedberg merged commit 17831b0 into zephyrproject-rtos:master Mar 10, 2021
@pabigot pabigot deleted the nordic/20210308d branch March 15, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants