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

Improve metagraph locking #115

Merged
merged 4 commits into from
Jan 20, 2018
Merged

Conversation

blsemo
Copy link
Collaborator

@blsemo blsemo commented Jan 17, 2018

Replace explicit set/unset of homespun lock with std::recursive_mutex and RAII lock object.

@blsemo blsemo requested a review from pklampros January 17, 2018 18:11
behaviour so that if we don't check the try lock, we actually wait to
acquire the mutex (I believe the code was just wrong which might explain
some depthmap weirdness in the past)
@blsemo blsemo merged commit 69d12be into SpaceGroupUCL:master Jan 20, 2018
@blsemo blsemo deleted the christians/fix-locks branch January 20, 2018 14:26
@pklampros pklampros added this to the 0.7.0 milestone Feb 7, 2018
pklampros pushed a commit that referenced this pull request Sep 2, 2020
* Replace explicit set/unset of homespun lock with std::recursive_mutex
and RAII lock object.

* Fix missed locks

* Use std::unique_lock rather than hand-rolled helper. Also change the
behaviour so that if we don't check the try lock, we actually wait to
acquire the mutex (I believe the code was just wrong which might explain
some depthmap weirdness in the past)

* Replace bool `m_lock_draw` with mutex/unique_lock.
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.

2 participants