public void TestTryAcquire()
        {
            Mutex rl = new Mutex();

            Assert.IsTrue(rl.AccessTryAcquire(1));
            Assert.IsTrue(rl.AccessIsHeldExclusively());
            rl.Release(1);
        }
        private void TestTryAcquireWhenSyncedRunnable(object state)
        {
            Mutex sync = state as Mutex;

            ThreadAssertFalse(sync.AccessTryAcquire(1));
        }