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

Method process

src/GraphCtrl/GraphEvent/GEvent.cpp:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45CStatus GEvent::process(GEventType type, GEventAsyncStrategy strategy) {
46 CGRAPH_FUNCTION_BEGIN
47
48 switch (type) {
49 case GEventType::SYNC: // 同步触发
50 this->trigger(this->param_);
51 break;
52 case GEventType::ASYNC: // 异步触发
53 CGRAPH_ASSERT_NOT_NULL(this->thread_pool_)
54 asyncProcess(strategy);
55 break;
56 default:
57 CGRAPH_RETURN_ERROR_STATUS("unknown event type")
58 }
59
60 CGRAPH_FUNCTION_END
61}
62
63
64std::shared_future<CVoid> GEvent::asyncProcess(GEventAsyncStrategy strategy) {

Callers 15

example_map_reduceFunction · 0.45
example_third_flowFunction · 0.45
example_auto_pilotFunction · 0.45
example_mock_guiFunction · 0.45
tutorial_clusterFunction · 0.45
tutorial_multi_conditionFunction · 0.45
tutorial_fenceFunction · 0.45
tutorial_someFunction · 0.45
tutorial_stageFunction · 0.45
tutorial_daemonFunction · 0.45
pub_messageFunction · 0.45
sub_messageFunction · 0.45

Calls

no outgoing calls

Tested by 6

tutorial_aspect_paramFunction · 0.36
tutorial_aspectFunction · 0.36
test_functional_01Function · 0.36
test_functional_03Function · 0.36
test_functional_02Function · 0.36
test_functional_04Function · 0.36