コード例 #1
0
        public void UnlockAllTest()
        {
            MyLM        target    = new MyLM();
            Transaction context   = new Transaction();
            Transaction context2  = new Transaction();
            Lockable    resource  = new RID(RID.Type.CAR, "test");
            Lockable    resource1 = new RID(RID.Type.FLIGHT, "test");

            target.LockForRead(context, resource);
            target.LockForRead(context, resource1);
            target.UnlockAll(context);
            target.LockForWrite(context2, resource);
            target.LockForWrite(context2, resource1);
        }