Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Do you have any code examples? Your narrative is a little hard to follow Commented Jan 3, 2020 at 15:15
  • 2
    use ConcurrentQueue instead of your own mutexes? Commented Jan 3, 2020 at 15:15
  • I agree with Ewan. There are several ways to do this that are all safer and easier to reason about than using mutexes. Look here. Commented Jan 3, 2020 at 16:06
  • Problem I found is if I use another SemaphoreSlim in Bar as a mutex to ensure thread-safety of the Incomplete-Items list, then I get a deadlock race-condition Not clear why you need two mutexes. I'm pretty sure you need (and want) only one. Commented Jan 4, 2020 at 1:20