Skip to content

Conversation

@eduardo-vp
Copy link
Member

@eduardo-vp eduardo-vp commented Aug 23, 2024

These work items are used to parallelize the actual work items but they don't do any actual work. It's more precise to only count actual work items for ThreadPool.CompletedWorkItemCount.

Fixes #104284

Eduardo Manuel Velarde Polar and others added 2 commits August 23, 2024 15:15
@eduardo-vp eduardo-vp merged commit 2df9935 into dotnet:main Aug 28, 2024
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
…Pool.CompletedWorkItemCount (dotnet#106854)

* Stop counting work items from ThreadPoolTypedWorkItemQueue as completed work items

* Fix CompletedWorkItemCount

* Update src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs

Co-authored-by: Koundinya Veluri <[email protected]>

* Run CompletedWorkItemCountTest on Windows only

---------

Co-authored-by: Eduardo Manuel Velarde Polar <[email protected]>
Co-authored-by: Koundinya Veluri <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ThreadPool.CompletedWorkItemCount double counting IO completion work items

2 participants