MCPcopy Create free account
hub / github.com/RaftLib/RaftLib / run

Method run

testsuite/allocateSendRandomPush.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 virtual ~last() = default;
102
103 virtual raft::kstatus run()
104 {
105 auto &mem( input[ "x" ].peek< obj_t >() );
106 for( auto i( 0 ); i < mem.length; i++ )
107 {
108 //will fail if we've messed something up
109 assert( static_cast<std::size_t>(mem.pad[ i ]) == counter );
110 }
111 input[ "x" ].unpeek();
112 input[ "x" ].recycle();
113 counter += 2;
114 return( raft::proceed );
115 }
116
117private:
118 std::size_t counter = 0;

Callers

nothing calls this directly

Calls 1

recycleMethod · 0.80

Tested by

no test coverage detected