Skip to content

Conversation

@claudiamurialdo
Copy link
Collaborator

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

Copy link
Contributor

@iroqueta iroqueta left a comment

Choose a reason for hiding this comment

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

In the WaitForThreadPoolEnd routine it seems that the SetMaxThreads method call that is outside the loop is unnecessary

@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests September 10, 2021 12:21 Inactive
@claudiamurialdo
Copy link
Collaborator Author

In the WaitForThreadPoolEnd routine it seems that the SetMaxThreads method call that is outside the loop is unnecessary

You mean ThreadPool.GetMaxThreads right?. It is necessary to get the maxWorkerThreads value used inside the loop.

@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests September 13, 2021 19:17 Inactive
@claudiamurialdo claudiamurialdo merged commit 0c16769 into master Sep 13, 2021
@claudiamurialdo claudiamurialdo deleted the submit-command-line branch September 13, 2021 19:46
claudiamurialdo added a commit that referenced this pull request Sep 15, 2021
claudiamurialdo added a commit that referenced this pull request Sep 15, 2021
claudiamurialdo added a commit that referenced this pull request Sep 15, 2021
…d line procedure. (#446)" (#449)

This reverts commit 0c16769.

(cherry picked from commit 756897e)
claudiamurialdo added a commit that referenced this pull request Mar 31, 2022
…y the threads started by a Submit call type. It does not wait for other threads to finish (like the ones started by aspnet thread pool).
claudiamurialdo added a commit that referenced this pull request Apr 26, 2022
…rocedure - new implementation (#580)

* Re-implement PR #446 with a new solution which takes into account only the threads started by a Submit call type. It does not wait for other threads to finish (like the ones started by aspnet thread pool).

* Clear events after WaitAll ending.

* Add log message to submit waiting routine.

* Add unit test for submit function.
Take into account limitation of WaitHandle.WaitAll and 64 threads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants