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

Class ActionGNode

example/E02-MockGUI.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
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
87void example_mock_gui() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected