Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Criteo-dotnet-blog/f29fc395caa13e7fb3f9d88a6798e854 to your computer and use it in GitHub Desktop.

Select an option

Save Criteo-dotnet-blog/f29fc395caa13e7fb3f9d88a6798e854 to your computer and use it in GitHub Desktop.
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