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 thread-safety of cow_ptr #2200

Closed
mantid-builder opened this issue Jun 30, 2010 · 1 comment
Closed

Improve thread-safety of cow_ptr #2200

mantid-builder opened this issue Jun 30, 2010 · 1 comment
Milestone

Comments

@mantid-builder
Copy link
Collaborator

Original Reporter: Russell Taylor

When vectors are shared between spectra and an algorithm is breaking that sharing, you can have a problem with the original vector being destroyed because the check for uniqueness in cow_ptr::access always fails if multiple threads are checking at the same time. I.e. the reference count goes from, e.g., 2 to zero if two threads go through simultaneously on their final pass.

@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 1353

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

No branches or pull requests

1 participant