示例#1
0
        public void Combine(MutexOperationResult anotherResult)
        {
            _history.AddRange(anotherResult._history);
            _result = _result | anotherResult._result;

            if (anotherResult.ResultIs(MutexOperationResultEnum.Acquired))
            {
                this.AcquisitionKey = anotherResult.AcquisitionKey;
            }
        }
示例#2
0
 public bool ResultIs(MutexOperationResultEnum resultToCheck)
 {
     return((_result & resultToCheck) == resultToCheck);
 }