| 131 | |
| 132 | |
| 133 | int CommitCtx :: GetResult(uint64_t & llSuccInstanceID) |
| 134 | { |
| 135 | m_oSerialLock.Lock(); |
| 136 | |
| 137 | while (!m_bIsCommitEnd) |
| 138 | { |
| 139 | m_oSerialLock.WaitTime(1000); |
| 140 | } |
| 141 | |
| 142 | if (m_iCommitRet == 0) |
| 143 | { |
| 144 | llSuccInstanceID = m_llInstanceID; |
| 145 | PLGImp("commit success, instanceid %lu", llSuccInstanceID); |
| 146 | } |
| 147 | else |
| 148 | { |
| 149 | PLGErr("commit fail, ret %d", m_iCommitRet); |
| 150 | } |
| 151 | |
| 152 | m_oSerialLock.UnLock(); |
| 153 | |
| 154 | return m_iCommitRet; |
| 155 | } |
| 156 | |
| 157 | const int CommitCtx :: GetTimeoutMs() const |
| 158 | { |
nothing calls this directly
no outgoing calls
no test coverage detected