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

Fix check-then-act race in GetServiceFromFactory #664

Merged
merged 5 commits into from
May 11, 2022

Conversation

achristoforides
Copy link
Member

Signed-off-by: The MathWorks, Inc. alchrist@mathworks.com

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>
Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>
Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>
@codecov-commenter
Copy link

codecov-commenter commented May 6, 2022

Codecov Report

Merging #664 (024a92c) into development (47a3f92) will decrease coverage by 0.02%.
The diff coverage is 78.57%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #664      +/-   ##
===============================================
- Coverage        90.49%   90.46%   -0.03%     
===============================================
  Files              249      248       -1     
  Lines            13483    13509      +26     
===============================================
+ Hits             12201    12221      +20     
- Misses            1282     1288       +6     
Impacted Files Coverage Δ
framework/src/service/ServiceRegistrationBase.cpp 81.89% <63.63%> (-0.76%) ⬇️
...mework/src/service/ServiceReferenceBasePrivate.cpp 92.09% <86.66%> (-0.86%) ⬇️
framework/src/service/ServiceReferenceBase.cpp 97.35% <100.00%> (ø)
...ork/src/service/ServiceRegistrationBasePrivate.cpp 88.23% <100.00%> (ø)
framework/src/service/ServiceRegistry.cpp 93.33% <100.00%> (+0.06%) ⬆️
util/include/cppmicroservices/util/BundleObjFile.h 0.00% <0.00%> (-100.00%) ⬇️
...nfigurationAdmin/src/ConfigurationAdminPrivate.hpp 80.00% <0.00%> (-11.67%) ⬇️
framework/include/cppmicroservices/BundleContext.h 94.91% <0.00%> (-1.81%) ⬇️
.../cppmicroservices/detail/ServiceTrackerPrivate.tpp 81.69% <0.00%> (-1.17%) ⬇️
.../ConfigurationAdmin/src/ConfigurationAdminImpl.cpp 92.81% <0.00%> (-0.16%) ⬇️
... and 10 more

@achristoforides achristoforides merged commit 0ad5875 into development May 11, 2022
@achristoforides achristoforides deleted the fix-cta-races branch May 11, 2022 21:52
insi-eb pushed a commit to insi-eb/CppMicroServices-cpp14 that referenced this pull request Oct 5, 2022
* Added test case

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>

* Fix check-then-act race for GetServiceFromFactory

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>

* Fixed test names and cleaned up tests

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>

* More cleanup

* Made changes requested by reviewers
jeffdiclemente pushed a commit that referenced this pull request Oct 5, 2022
* Added test case

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>

* Fix check-then-act race for GetServiceFromFactory

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>

* Fixed test names and cleaned up tests

Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>

* More cleanup

* Made changes requested by reviewers

Co-authored-by: Alexander Christoforides <38366659+achristoforides@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants