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 distarray lifetime in init_tiles and assignment #360

Merged

Conversation

evaleev
Copy link
Member

@evaleev evaleev commented Aug 11, 2022

besides minor cosmetic changes this

  • fixes DistArray::operator=(other) to respect defer_deleter_to_next_fence_ just like DistArray dtor; it also copies the other.defer_deleter_to_next_fence_ flag
  • DistArray::init_tiles ensures that its tasks outlive pimpl_ by deferring its destruction to the next fence

@evaleev evaleev requested a review from asadchev August 11, 2022 14:40
@asadchev asadchev force-pushed the evaleev/fix/distarray-lifetime-in-init-tiles-and-assignment branch from 5e6af9a to 2d7e4bf Compare August 12, 2022 14:11
@asadchev asadchev merged commit fab5dc3 into master Aug 12, 2022
@evaleev evaleev deleted the evaleev/fix/distarray-lifetime-in-init-tiles-and-assignment branch August 12, 2022 19:04
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