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

Method run

testsuite/twiceAdd.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 output.template addPort< T >( "sum" );
23 }
24 virtual raft::kstatus run()
25 {
26 T a,b;
27 input[ "input_a" ].pop( a );
28 input[ "input_b" ].pop( b );
29 /** allocate mem directly on queue **/
30 auto c( output[ "sum" ].template allocate_s< T >() );
31 (*c) = a + b;
32 /** mem automatically freed upon scope exit **/
33 return( raft::proceed );
34 }
35
36};
37

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected