Replies: 3 comments
-
Try this one: le = list_head(&turndp()->rm_map);
while (le)
{
struct udp_socks *uks = list_ledata(le);
le = le->next;
if (thrd_id == uks->thrd_id) {
udp_thread_detach(uks->rel_us);
udp_thread_detach(uks->rsv_us);
list_unlink(&uks->le);
mem_deref(uks);
}
}
The original pointer is not modified, only the reference pointer is set to the next element and should not be used after this (before next round). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your reply. I tried to use it. it is ok. I will submit a PR for the turn_thread. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
sreimers, Thank you for your reply.
I tried to use it, but it didn't work.
Beta Was this translation helpful? Give feedback.
All reactions