Skip to content

No destroy cancellation none#26

Merged
syntheticmagus merged 2 commits intomicrosoft:masterfrom
syntheticmagus:noDestroyCancellationNone
Oct 26, 2020
Merged

No destroy cancellation none#26
syntheticmagus merged 2 commits intomicrosoft:masterfrom
syntheticmagus:noDestroyCancellationNone

Conversation

@syntheticmagus
Copy link
Contributor

This change addresses a problem we were encountering in Babylon Native where cancellation::none was getting torn down by one thread while another thread still needed it to exist. A proposal, referenced in a comment in the code, exists to standardize a mechanism for handling this type of error:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1247r0.html

However, since this proposal is not yet standard, I instead adopted one of the alternatives listed in the proposal to resolve this problem for now. This change has been tested and confirmed to solve the problem Babylon Native was exhibiting.

@syntheticmagus syntheticmagus merged commit 6cd34bd into microsoft:master Oct 26, 2020
@syntheticmagus syntheticmagus deleted the noDestroyCancellationNone branch October 27, 2020 00:52
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