MCPcopy Create free account
hub / github.com/acl-dev/acl / msg_list_clone

Function msg_list_clone

lib_acl/src/msg/acl_msgio.c:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180/* ������¡��Ϣ���ϼ���Ϣ�������󼯺� */
181
182static void msg_list_clone(ACL_MSGIO *mio_from, ACL_MSGIO *mio_to)
183{
184 MSG_ITEM *msg_from, *msg_to;
185 ACL_RING_ITER iter;
186
187 acl_ring_foreach(iter, &mio_from->msg_list) {
188 msg_from = ACL_RING_TO_APPL(iter.ptr, MSG_ITEM, entry);
189 if (!msg_from->inherit)
190 continue;
191 msg_to = msg_new(msg_from->id, msg_from->inherit);
192 acl_ring_append(&mio_to->msg_list, &msg_to->entry);
193 msg_clone(msg_from, msg_to);
194 }
195}
196
197/* ������ϢID��ѯ��Ϣ���� */
198

Callers 1

accept_connectionFunction · 0.85

Calls 3

msg_newFunction · 0.85
acl_ring_appendFunction · 0.85
msg_cloneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…