Project Name File Name Usage Source Code Link
BinaryAnalysis.Core SchedulerFactoryTaskScheduler.cs ThreadPool.UnsafeQueueUserWorkItem(_ => { // Note that the current thread is now processing work items. // This is necessary to enable inlining of tasks into this thread. currentThreadIsProcessingItems = true; try { // Process all available items in the queue. while (true) { tt.Task item; lock (tasks) { // When there are no more items to be processed, // note that we're done processing, and get out. if (tasks.Count == 0) { --delegatesQueuedOrRunning; break; } // Get the next item from the queue item = tasks.First.Value; tasks.RemoveFirst(); } // Execute the task we pulled out of the queue base.TryExecuteTask(item); } } // We're done processing items on the current thread finally { currentThreadIsProcessingItems = false; } }, null) Link To Source File
BsonSqlServer SqlConnectionManager.cs ThreadPool.UnsafeQueueUserWorkItem(cb, connection) Link To Source File
Phocus ListenerAsyncResult.cs ThreadPool.UnsafeQueueUserWorkItem (InvokeCB, this) Link To Source File
Phocus ListenerAsyncResult.cs ThreadPool.UnsafeQueueUserWorkItem (InvokeCB, this) Link To Source File
MonoMobile.Views UrlImageStore.cs ThreadPool.UnsafeQueueUserWorkItem(_ => { // Note that the current thread is now processing work items. // This is necessary to enable inlining of tasks into this thread. _currentThreadIsProcessingItems = true; try { // Process all available items in the queue. while (true) { Task item; lock (_tasks) { // When there are no more items to be processed, // note that we're done processing, and get out. if (_tasks.Count == 0) { --_delegatesQueuedOrRunning; break; } // Get the next item from the queue item = _tasks.First.Value; _tasks.RemoveFirst(); } // Execute the task we pulled out of the queue base.TryExecuteTask(item); } } // We're done processing items on the current thread finally { _currentThreadIsProcessingItems = false; } }, null) Link To Source File
ExpressUnit TaskScheduler.cs ThreadPool.UnsafeQueueUserWorkItem(_ => { // Note that the current thread is now processing work items. // This is necessary to enable inlining of tasks into this thread. _currentThreadIsProcessingItems = true; try { // Process all available items in the queue. while (true) { Task item; lock (_tasks) { // When there are no more items to be processed, // note that we're done processing, and get out. if (_tasks.Count == 0) { --_delegatesQueuedOrRunning; break; } // Get the next item from the queue item = _tasks.First.Value; _tasks.RemoveFirst(); } // Execute the task we pulled out of the queue base.TryExecuteTask(item); } } // We're done processing items on the current thread finally { _currentThreadIsProcessingItems = false; } }, null) Link To Source File