🦄 refactor(plug_mgr): per stage msg counter encap

This commit is contained in:
yangwei
2024-09-06 14:01:23 +08:00
parent 9cb50f81fb
commit 3de8bbdabc
3 changed files with 26 additions and 11 deletions

View File

@@ -13,7 +13,6 @@ extern "C"
#include "uthash/utarray.h"
struct stellar_message;
struct per_thread_exdata_array
@@ -26,10 +25,9 @@ struct plugin_manager_per_thread_data
struct per_thread_exdata_array per_thread_pkt_exdata_array;
struct stellar_message *priority_mq[STELLAR_MQ_PRIORITY_MAX];// message list
struct stellar_message *dealth_letter_queue;// dlq list
long long pub_packet_msg_cnt;
unsigned long long pub_packet_msg_cnt;
};
struct plugin_manager_schema
{
struct stellar *st;
@@ -44,6 +42,7 @@ struct plugin_manager_schema
struct plugin_manager_per_thread_data *per_thread_data;
}__attribute__((aligned(sizeof(void*))));
enum plugin_exdata_state
{ INIT, ACTIVE, EXIT };