Browse Source

1

nodeinfo-routing-update
jeka 7 months ago
parent
commit
357169a38a
  1. 4
      lib/ll_queue.c

4
lib/ll_queue.c

@ -262,6 +262,7 @@ int queue_data_put(struct ll_queue* q, struct ll_entry* entry, uint32_t id) {
// Проверить ожидающие коллбэки // Проверить ожидающие коллбэки
check_waiters(q); check_waiters(q);
queue_check_consistency(q);// !!!! for debug
return 0; return 0;
} }
@ -302,6 +303,7 @@ int queue_data_put_first(struct ll_queue* q, struct ll_entry* entry, uint32_t id
// Проверить ожидающие коллбэки // Проверить ожидающие коллбэки
check_waiters(q); check_waiters(q);
queue_check_consistency(q);// !!!! for debug
return 0; return 0;
} }
@ -330,6 +332,7 @@ struct ll_entry* queue_data_get(struct ll_queue* q) {
// Проверить ожидающие коллбэки // Проверить ожидающие коллбэки
check_waiters(q); check_waiters(q);
queue_check_consistency(q);// !!!! for debug
return entry; return entry;
} }
@ -447,6 +450,7 @@ int queue_remove_data(struct ll_queue* q, struct ll_entry* entry) {
remove_from_hash(q, entry); remove_from_hash(q, entry);
// DEBUG_DEBUG(DEBUG_CATEGORY_LL_QUEUE, "queue_remove_data: removed entry %p (id=%u), count=%d", entry, entry->id, q->count); // DEBUG_DEBUG(DEBUG_CATEGORY_LL_QUEUE, "queue_remove_data: removed entry %p (id=%u), count=%d", entry, entry->id, q->count);
queue_check_consistency(q);// !!!! for debug
return 0; return 0;
} }
Loading…
Cancel
Save