Azure / Azure/durabletask

[Service Fabric] Race condition detected by Parallel Checker in AsyncManualResetEvent

Open
#766 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.