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

Method run

testsuite/allocateSendRandomPush.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 virtual ~start() = default;
39
40 virtual raft::kstatus run()
41 {
42 auto &mem( output[ "y" ].allocate< obj_t >() );
43 for( auto i( 0 ); i < mem.length; i++ )
44 {
45 mem.pad[ i ] = static_cast< int >( counter );
46 }
47 output[ "y" ].send();
48 counter++;
49 if( counter == 200 )
50 {
51 return( raft::stop );
52 }
53 return( raft::proceed );
54 }
55
56private:
57 std::size_t counter = 0;

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected