コード例 #1
0
 public void TestOwns()
 {
     Mutex sync = new Mutex();
     AbstractQueuedSynchronizer.ConditionObject c = sync.NewCondition();
     Mutex sync2 = new Mutex();
     Assert.IsTrue(sync.Owns(c));
     Assert.IsFalse(sync2.Owns(c));
 }