parallel-extensions-extras icon indicating copy to clipboard operation
parallel-extensions-extras copied to clipboard

OrderedTaskScheduler deadlock

Open Aberro opened this issue 8 years ago • 0 comments

If I start task with OrderedTaskScheduler and this task uses awaiter, which switch to another thread, I get a deadlock inside LimitedConcurrencyLevelTaskScheduler.TryExecuteTaskInline, because task completed inside my task runs continuation in from another thread and _currentThreadIsProcessingItems in that thread is false.

Aberro avatar Feb 28 '17 18:02 Aberro