public static bool CheckSetPositive(NotificationLatchTarget target, long value1, long value2) { lock (_syncRoot) { var failed = false; for (var i = 0; i < BlockCount; i++) { if (!_blocks[i].CheckSetPositiveBlock(target, value1, value2)) { failed = true; } } return(!failed); } }
public bool CheckSetNegativeBlock(NotificationLatchTarget target, long value1, long value2) { return(_units[(int)target].CheckSetNegative(value1, value2)); }