Пример #1
0
 internal static IEnumerable <IThreadPoolWorkItem> GetLocallyQueuedWorkItems()
 {
     return(ThreadPool.EnumerateQueuedWorkItems(new ThreadPoolWorkQueue.WorkStealingQueue[]
     {
         ThreadPoolWorkQueueThreadLocals.threadLocals.workStealingQueue
     }, null));
 }
Пример #2
0
 internal static IEnumerable <IThreadPoolWorkItem> GetGloballyQueuedWorkItems()
 {
     return(ThreadPool.EnumerateQueuedWorkItems((ThreadPoolWorkQueue.WorkStealingQueue[])null, ThreadPoolGlobals.workQueue.queueTail));
 }
Пример #3
0
 internal static IEnumerable <IThreadPoolWorkItem> GetQueuedWorkItems()
 {
     return(ThreadPool.EnumerateQueuedWorkItems(ThreadPoolWorkQueue.allThreadQueues.Current, ThreadPoolGlobals.workQueue.queueTail));
 }