MCPcopy Create free account
hub / github.com/OAID/Tengine / GetStats

Method GetStats

core/lib/notify_instance.cpp:452–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452bool NotifyBus::GetStats(int event, EventStats& stats)
453{
454 EventNode* node = GetNode(event);
455
456 if(node == nullptr)
457 return false;
458
459 stats.event = node->event;
460 stats.name = node->name;
461 stats.book_count = node->handle_list.size();
462 stats.pending_count = GetPendingCount(node);
463 stats.send_count = node->send_count;
464 stats.sync_send_count = node->sync_send_count;
465 stats.process_count = node->process_count;
466 stats.drop_count = node->drop_count;
467 stats.send_fail_count = node->send_fail_count;
468
469 PutNode(node);
470
471 return true;
472}
473
474void NotifyBus::LockNameMap()
475{

Callers 1

test_singleFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

test_singleFunction · 0.64