MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / IncNextTurn

Method IncNextTurn

sqlchain/runtime.go:200–204  ·  view source on GitHub ↗

IncNextTurn prepares the runtime state for the next turn.

()

Source from the content-addressed store, hash-verified

198
199// IncNextTurn prepares the runtime state for the next turn.
200func (r *runtime) IncNextTurn() {
201 r.stateMutex.Lock()
202 defer r.stateMutex.Unlock()
203 r.nextTurn++
204}
205
206// SetNextTurn sets the runtime state to the given turn.
207func (r *runtime) SetNextTurn(turn int32) {

Callers 2

runCurrentTurnMethod · 0.80
syncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected