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

Remove the storage delegate's queue from the storage bridge #6519

Merged
merged 3 commits into from
May 6, 2021

Conversation

sagar-apple
Copy link
Contributor

Problem

The storage delegate bridge is using the delegate queue only for writes.
Since the Storage APIs are all sync right now, there's no use of this queue.
In the future if we reintroduce Async APIs, we it's perfectly acceptable to require the Delegate to make their implementation thread safe rather than promising to call them back on a queue they supplied.

Summary of Changes

Removed the delegate queue passed into the storage delegate bridge.
Now the delegate bridge directly calls into the delegate's APIs and it's upto the delegate to ensure thread safety.

@andy31415 andy31415 merged commit 7a746b4 into project-chip:master May 6, 2021
@sagar-apple sagar-apple deleted the storage_crashes branch May 6, 2021 19:17
erjiaqing added a commit to erjiaqing/connectedhomeip that referenced this pull request May 7, 2021
andy31415 pushed a commit that referenced this pull request May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants