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

Reinit gdbus wrapper class in non-static class method #26455

Merged
merged 1 commit into from
May 9, 2023

Conversation

arkq
Copy link
Contributor

@arkq arkq commented May 9, 2023

Problem

It seems that Clang Thread Safety Analysis is confused if the lock takes place not on the class instance itself but in the static method...

Changes

Move internal state reinit into the class instance method. The GLibMatterContextInvokeSync() call is sync anyway.

Testing

CI will verify.

Locally, running clang-based build does not fail now.

./scripts/build/build_examples.py --target linux-x64-chip-tool-clang build

It seems that Clang Thread Safety Analysis is confused if the lock takes
place not on the class instance itself but in the static method...
@bzbarsky-apple bzbarsky-apple added the hotfix urgent fix needed, can bypass review label May 9, 2023
@andy31415 andy31415 merged commit d154372 into project-chip:master May 9, 2023
@arkq arkq deleted the thread-safety-fix branch May 9, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix urgent fix needed, can bypass review linux platform review - pending
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants