| 74 | } |
| 75 | |
| 76 | bool CommitCtx :: IsMyCommit(const uint64_t llInstanceID, const std::string & sLearnValue, SMCtx *& poSMCtx) |
| 77 | { |
| 78 | m_oSerialLock.Lock(); |
| 79 | |
| 80 | bool bIsMyCommit = false; |
| 81 | |
| 82 | if ((!m_bIsCommitEnd) && (m_llInstanceID == llInstanceID)) |
| 83 | { |
| 84 | bIsMyCommit = (sLearnValue == (*m_psValue)); |
| 85 | } |
| 86 | |
| 87 | if (bIsMyCommit) |
| 88 | { |
| 89 | poSMCtx = m_poSMCtx; |
| 90 | } |
| 91 | |
| 92 | m_oSerialLock.UnLock(); |
| 93 | |
| 94 | return bIsMyCommit; |
| 95 | } |
| 96 | |
| 97 | void CommitCtx :: SetResultOnlyRet(const int iCommitRet) |
| 98 | { |
nothing calls this directly
no outgoing calls
no test coverage detected