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 cache concurrency issue (#356) #357

Merged
merged 2 commits into from
Mar 10, 2023
Merged

Conversation

pca006132
Copy link
Collaborator

Fixed the cache issue and added a simple helper class so we can reuse the logic later.

@pca006132 pca006132 requested review from elalish and geoffder March 9, 2023 18:01
@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Patch coverage: 80.55% and project coverage change: -0.08 ⚠️

Comparison is base (83131c6) 89.43% compared to head (24d7e49) 89.36%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #357      +/-   ##
==========================================
- Coverage   89.43%   89.36%   -0.08%     
==========================================
  Files          33       33              
  Lines        3974     3985      +11     
==========================================
+ Hits         3554     3561       +7     
- Misses        420      424       +4     
Impacted Files Coverage Δ
src/utilities/include/utils.h 56.25% <55.55%> (-0.28%) ⬇️
src/manifold/src/csg_tree.cpp 91.62% <88.46%> (+0.07%) ⬆️
src/manifold/src/csg_tree.h 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@geoffder
Copy link
Collaborator

geoffder commented Mar 9, 2023

Seems like a nice and minimal drop-in solution to make the transformation updates safer, shouldn't add too much overhead either especially since acquiring the lock won't even be happening often.

Copy link
Owner

@elalish elalish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pca006132 pca006132 merged commit 754a481 into elalish:master Mar 10, 2023
@pca006132 pca006132 deleted the fix-cache branch August 15, 2023 12:53
@elalish elalish mentioned this pull request Nov 3, 2023
cartesian-theatrics pushed a commit to SovereignShop/manifold that referenced this pull request Mar 11, 2024
* added ConcurrentSharedPtr

* fixed csg tree cache concurrency bug (elalish#356)
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.

3 participants