public void CommitTransaction() { lock (this) this.transactions.Remove(current); long trtime = Interlocked.Increment(ref this.time); Interlocked.Increment(ref this.time); current.Commit(trtime); current = null; }