修复消息队列野指针的bug和队列长度计算异常的错误

This commit is contained in:
NeoZng
2022-12-01 13:07:55 +08:00
parent bcd7bf00e5
commit 063203bd68
5 changed files with 92 additions and 48 deletions

View File

@@ -73,6 +73,7 @@ typedef struct ent
uint8_t data_len;
/* 指向第一个订阅了该事件的订阅者,通过链表访问所有订阅者 */
Subscriber_t* first_subs;
Subscriber_t* iter;// 用于遍历所有订阅了该事件的订阅者的指针
/* 指向下一个Publisher的指针 */
struct ent* next_event_node;