SetNextTurn sets the runtime state to the given turn.
(turn int32)
| 205 | |
| 206 | // SetNextTurn sets the runtime state to the given turn. |
| 207 | func (r *runtime) SetNextTurn(turn int32) { |
| 208 | r.stateMutex.Lock() |
| 209 | defer r.stateMutex.Unlock() |
| 210 | r.nextTurn = turn |
| 211 | } |
| 212 | |
| 213 | // stop sends a signal to the Runtime stop channel by closing it. |
| 214 | func (r *runtime) stop(dbID proto.DatabaseID) { |