Ejemplo n.º 1
0
 protected override bool TryExecuteTaskInline(PerlaItem item, bool taskWasPreviouslyQueued)
 {
     if (taskWasPreviouslyQueued /*&& !ThreadPool.TryPopCustomWorkItem(item)*/)
     {
         return(false);
     }
     try
     {
         item.ExecuteEntryUnsafe(threadPoolThread: null);
     }
     finally
     {
         if (taskWasPreviouslyQueued)
         {
             NotifyWorkItemProgress();
         }
     }
     return(true);
 }