| 91 | return MasterGuid; |
| 92 | } |
| 93 | void Cancel() { |
| 94 | if (AtomicCas(&CurrentState, -1, 0)) { |
| 95 | if (CompleteNotify.Get()) { |
| 96 | CompleteNotify->MRCommandComplete(true, nullptr); |
| 97 | CompleteNotify = nullptr; |
| 98 | } else |
| 99 | Y_ASSERT(0 && "Notify ptr is lost"); |
| 100 | } |
| 101 | } |
| 102 | bool NeedResult() { |
| 103 | if (AtomicGet(CurrentState) != 0) |
| 104 | return false; |
no test coverage detected