Skip to content

Instantly share code, notes, and snippets.

@Criteo-dotnet-blog
Last active January 11, 2018 14:39
Show Gist options
  • Save Criteo-dotnet-blog/62017bdbe2f48694a2c31be9a9c85a8a to your computer and use it in GitHub Desktop.
Save Criteo-dotnet-blog/62017bdbe2f48694a2c31be9a9c85a8a to your computer and use it in GitHub Desktop.
// m_timers is the start of the list of TimerQueueTimer
var currentPointer = GetFieldValue(heap, timerQueue.Value, "m_timers");
while ((currentPointer != null) && (((ulong)currentPointer) != 0))
{
    // currentPointer points to a TimerQueueTimer instance
    ulong currentTimerQueueTimerRef = (ulong)currentPointer;
    TimerInfo ti = new TimerInfo()
    {
        TimerQueueTimerAddress = currentTimerQueueTimerRef
    };
...
currentPointer = GetFieldValue(heap, currentTimerQueueTimerRef, "m_next");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment