MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / ProcessNode

Class ProcessNode

example/E05-HttpServer.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template<int STEP, int MS>
41class ProcessNode : public GNode {
42 CStatus run() override {
43 auto param = CGRAPH_GET_GPARAM_WITH_NO_EMPTY(HttpParam, EXAMPLE_PARAM_KEY);
44 {
45 CGRAPH_PARAM_WRITE_CODE_BLOCK(param);
46 CGRAPH_ECHO("process step %d, sleep %d ms, val is %d, loop is %d",
47 STEP, MS, ++param->val_, ++param->loop_);
48 }
49 CGRAPH_SLEEP_MILLISECOND(MS);
50 return CStatus();
51 }
52};
53
54
55class ResponseNode : public GNode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected