TXBasicLockRecord[] mLockRecordList = _newLock ? new TXBasicLockRecord[mNumberOfResources] : new TXBasicLockRecord2[mNumberOfResources];
int[] expectedValue = new int[mNumberOfResources];
for (int i = 0; i < mNumberOfResources; i++)
{
mLockRecordList[i] = _newLock ? new TXBasicLockRecord() : new TXBasicLockRecord2();
expectedValue[i] = 0;
}
Worker004[] mWorkers = new Worker004[mNumberOfWorkers];
for (int i = 0; i < mNumberOfWorkers; i++)