private void IncrementAllDone() { lock (_incrs) { // Increment all sequential pending increments that are already done. int doneCount = 0; for (; doneCount < _incrs.Count; doneCount++) { if (!_incrs[doneCount].Done) { break; } _syncMgr.IncrementSyncpoint(_incrs[doneCount].SyncptId); } _incrs.RemoveRange(0, doneCount); } }