コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public bool CheckSetNegativeBlock(NotificationLatchTarget target, long value1, long value2)
 {
     return(_units[(int)target].CheckSetNegative(value1, value2));
 }