Skip to content

Instantly share code, notes, and snippets.

@tomgilder
tomgilder / MainThreadWatchdog.cs
Last active Nov 9, 2015
Watchdog to alert when iOS main thread is blocked
View MainThreadWatchdog.cs
using System;
using System.Diagnostics;
using Foundation;
using System.Runtime.InteropServices;
using ObjCRuntime;
namespace Watchdog
{
public static class MainThreadWatchdog
{