| 147 | /* ����Ϣ���������������µĴ������� */ |
| 148 | |
| 149 | static void msg_append(MSG_ITEM *msg, ACL_MSGIO_NOTIFY_FN notify_fn, void *arg) |
| 150 | { |
| 151 | ACL_RING_ITER iter; |
| 152 | MSG_CALL *call; |
| 153 | |
| 154 | acl_ring_foreach(iter, &msg->call_list) { |
| 155 | call = ACL_RING_TO_APPL(iter.ptr, MSG_CALL, entry); |
| 156 | if (call->notify_fn == notify_fn) { |
| 157 | return; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | call = msg_call_new(msg, notify_fn, arg); |
| 162 | acl_ring_append(&msg->call_list, &call->entry); |
| 163 | } |
| 164 | |
| 165 | /* ������¡ij��Ϣ�Ĵ������� */ |
| 166 |
no test coverage detected
searching dependent graphs…