| 450 | } |
| 451 | |
| 452 | bool 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 | |
| 474 | void NotifyBus::LockNameMap() |
| 475 | { |