public override void Run() { #if !NETSTANDARD1_3 try { #endif lock (@lock) { Monitor.Wait(@lock); } target(); #if !NETSTANDARD1_3 } catch (ThreadInterruptedException e) { } #endif @lock.Dec(); }
public override void Run() { #if FEATURE_THREADINTERRUPT try { #endif lock (@lock) { Monitor.Wait(@lock); } target(); #if FEATURE_THREADINTERRUPT } catch (ThreadInterruptedException e) { } #endif @lock.Dec(); }