| 777 | /////////////////////////////// |
| 778 | |
| 779 | void Instance :: OnTimeout(const uint32_t iTimerID, const int iType) |
| 780 | { |
| 781 | if (iType == Timer_Proposer_Prepare_Timeout) |
| 782 | { |
| 783 | m_oProposer.OnPrepareTimeout(); |
| 784 | } |
| 785 | else if (iType == Timer_Proposer_Accept_Timeout) |
| 786 | { |
| 787 | m_oProposer.OnAcceptTimeout(); |
| 788 | } |
| 789 | else if (iType == Timer_Learner_Askforlearn_noop) |
| 790 | { |
| 791 | m_oLearner.AskforLearn_Noop(); |
| 792 | } |
| 793 | else if (iType == Timer_Instance_Commit_Timeout) |
| 794 | { |
| 795 | OnNewValueCommitTimeout(); |
| 796 | } |
| 797 | else |
| 798 | { |
| 799 | PLGErr("unknown timer type %d, timerid %u", iType, iTimerID); |
| 800 | } |
| 801 | } |
| 802 | |
| 803 | //////////////////////////////// |
| 804 |
nothing calls this directly
no outgoing calls
no test coverage detected