Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

omajid
Copy link
Member

@omajid omajid commented Jun 18, 2024

The code expects multiple threads to call it, and it's possible one thread sets _handle to null before the second thread enter the block and tries to call _handle.Close().

The code expects multiple threads to call it, and it's possible one
thread sets `_handle` to null before the second thread enter the block
and tries to call `_handle.Close()`.
@ghost ghost added the area-System.IO label Jun 18, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 18, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

@stephentoub
Copy link
Member

Thanks. What is the race condition you're trying to fix? Calling Dispose concurrently with itself is not supported.

@stephentoub stephentoub added the needs-author-action An issue or pull request that requires more info or actions from the author. label Jul 9, 2024
@stephentoub
Copy link
Member

Closing due to no response. But thanks for trying to improve things here.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO community-contribution Indicates that the PR has been added by a community member needs-author-action An issue or pull request that requires more info or actions from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants