etcp: переупорядочить close + защита state==2 во всех API-точках; topo: правильная очистка group nodes и registry; chat/member: новый модуль member_sync; chatgui: обновления транспорта и UI
This commit is contained in:
1 parent
b2e4aadbf0
commit
7f901c01e1
38 files changed
+1275
-540
No files matched your search
+5
-1
@@ -440,7 +440,7 @@ static uint64_t timeval_to_ms(const struct timeval* tv) {
|
||||
|
||||
|
||||
// Process immediate_queue (deferred callbacks via uasync_call_soon)
|
||||
static void process_immediate_queue(struct UASYNC* ua) {
|
||||
void process_immediate_queue(struct UASYNC* ua) {
|
||||
while (ua->immediate_queue_head) {
|
||||
struct timeout_node* node = ua->immediate_queue_head;
|
||||
ua->immediate_queue_head = node->next;
|
||||
@@ -456,6 +456,10 @@ static void process_immediate_queue(struct UASYNC* ua) {
|
||||
}
|
||||
}
|
||||
|
||||
void uasync_drain_immediate(struct UASYNC* ua) {
|
||||
if (ua) process_immediate_queue(ua);
|
||||
}
|
||||
|
||||
// Process expired timeouts with safe cancellation
|
||||
static void process_timeouts(struct UASYNC* ua) {
|
||||
if (!ua) return;
|
||||
|
||||
Reference in new issue
Block a user