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

Method run

example/E02-MockGUI.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78class ActionGNode : public GNode {
79 CStatus run() override {
80 int ms = std::abs((int)std::random_device{}()) % 4000 + 1000;
81 CGRAPH_SLEEP_MILLISECOND(ms); // 一个算子,随机休息一段时间,时长 1000~5000 ms
82 return CStatus();
83 }
84};
85
86

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected