internal TransactionTable() { this.timer = new Timer(new TimerCallback(this.ThreadTimer), null, -1, this.timerInterval); this.timerEnabled = false; this.timerInterval = 0x200; this.ticks = 0L; this.headBucketSet = new BucketSet(this, 0x7fffffffffffffffL); this.rwLock = new CheapUnfairReaderWriterLock(); }
internal TransactionTable() { // Create a timer that is initially disabled by specifing an Infinite time to the first interval _timer = new Timer(new TimerCallback(ThreadTimer), null, Timeout.Infinite, _timerInterval); // Note that the timer is disabled _timerEnabled = false; // Store the timer interval _timerInterval = 1 << TransactionTable.timerInternalExponent; // Ticks start off at zero. _ticks = 0; // The head of the list is long.MaxValue. It contains all of the transactions that for // some reason or other don't have a timeout. _headBucketSet = new BucketSet(this, long.MaxValue); // Allocate the lock _rwLock = new CheapUnfairReaderWriterLock(); }
internal TransactionTable() { // Create a timer that is initially disabled by specifing an Infinite time to the first interval this.timer = new Timer( new TimerCallback(ThreadTimer), null, Timeout.Infinite, this.timerInterval ); // Note that the timer is disabled this.timerEnabled = false; // Store the timer interval this.timerInterval = 1 << TransactionTable.timerInternalExponent; // Ticks start off at zero. this.ticks = 0; // The head of the list is long.MaxValue. It contains all of the transactions that for // some reason or other don't have a timeout. this.headBucketSet = new BucketSet( this, long.MaxValue ); // Allocate the lock rwLock = new CheapUnfairReaderWriterLock(); }