public void TestCallback() { Thread tr = new Thread(new ThreadStart(CallbackThread)); tr.Start(); Thread.Sleep(200); bool concurrent = notreentrant.CheckConcurrency(); Assert.IsTrue(!concurrent, "Concurrency detected"); notreentrant.CheckContext(Thread.CurrentContext); tr.Join(); Assert.IsTrue(!otResult, "Concurrency detected in CallbackThread"); }
public bool CallBack (SincroRequiresNew bob) { return bob.CheckConcurrency (); }
void FirstSyncThread() { otResult = sincob.CheckConcurrency(); }
public bool CallBack(SincroRequiresNew bob) { return(bob.CheckConcurrency()); }