MCPcopy Create free account
hub / github.com/BirolLab/abyss / SetState

Method SetState

Parallel/NetworkSequenceCollection.cpp:678–692  ·  view source on GitHub ↗

Set the state

Source from the content-addressed store, hash-verified

676// Set the state
677//
678void NetworkSequenceCollection::SetState(
679 NetworkAssemblyState newState)
680{
681 logger(2) << "SetState " << newState
682 << " (was " << m_state << ")\n";
683
684 // Ensure there are no pending messages
685 assert(m_comm.transmitBufferEmpty());
686
687 m_state = newState;
688
689 // Reset the checkpoint counter
690 m_numReachedCheckpoint = 0;
691 m_checkpointSum = 0;
692}
693
694/** Receive and dispatch packets.
695 * @return the number of packets received

Callers

nothing calls this directly

Calls 1

transmitBufferEmptyMethod · 0.80

Tested by

no test coverage detected