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

Wait for reverse oop-to-host asset-sync calls to finish before the last oop call returns back to the host. #63122

Merged
merged 5 commits into from
Aug 2, 2022

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Aug 2, 2022

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from dibarbet August 2, 2022 00:28
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner August 2, 2022 00:28
@CyrusNajmabadi CyrusNajmabadi changed the title Wait for reverse oop-to-host asset-sync calls to finish before the la… Wait for reverse oop-to-host asset-sync calls to finish before the last oop call returns back to the host. Aug 2, 2022
/// unpinning the solution on the host) while the solution-computation tasks are still running and may still
/// attempt to call into the host.
/// </summary>
public ImmutableArray<Task> DecrementInFlightCount_NoLock()
Copy link
Member Author

Choose a reason for hiding this comment

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

i was considering having this return a Task that represented what the caller should await on. however, we don't want this call awaited while in the state-lock, so that could be very confusing. instead, we want this to run synchronously, clean up everything properly, then return the Task/Tasks the caller should await outsdie of hte lock. So this is a bit clearer in that regard (imo).

@CyrusNajmabadi CyrusNajmabadi merged commit 34004d2 into dotnet:main Aug 2, 2022
@ghost ghost added this to the Next milestone Aug 2, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the waitOnWork branch August 2, 2022 03:27
@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants