[Service Fabric] Race condition detected by Parallel Checker in AsyncManualResetEvent
Open
- Dominant language
- C#
- Stars
- 1.7k
- Forks
- 335
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 6
Description
I have [Parallel Checker](https://github.com/blaeser/parallelchecker) installed.
And it tells that this piece of code causes a race condition
``` C#
while (true)
{
var thisTcs = this.taskCompletionSource;
if (!thisTcs.Task.IsCompleted || Interlocked.CompareExchange(ref this.taskCompletionSource, new TaskCompletionSource(), thisTcs) == thisTcs)
{
return;
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.