Created
October 31, 2017 10:38
-
-
Save Criteo-dotnet-blog/f29fc395caa13e7fb3f9d88a6798e854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private IEnumerable<ThreadPoolItem> EnumerateThreadPoolStealingQueue(dynamic stealingQueue) | |
| { | |
| var array = stealingQueue.m_array; | |
| if (array == null) | |
| yield break; | |
| foreach (var item in array) | |
| { | |
| if (item == null) | |
| continue; | |
| yield return GetThreadPoolItem(item); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment