debug list: now use local current list instead of current_list to avoid thread concurrency

This commit is contained in:
2025-07-02 01:07:09 +02:00
parent cb84a03b0d
commit 3c5cae31cc
4 changed files with 182 additions and 61 deletions
+2 -2
View File
@@ -25,7 +25,7 @@
TEST(first){
struct y_socket_t *firstSock = y_socket_create("1600", 2);
struct y_socket_t *firstSock = y_socket_create_("1600");
LOG("create y_socket_t in port |%s|\n",firstSock->port);
y_socket_free(firstSock);
@@ -164,7 +164,7 @@ TEST(searchNode){
TEST(pollThread){
struct y_socket_t *argS=y_socket_create("1600", 2);
struct y_socket_t *argS=y_socket_create("1600", 2, 3);
pthread_t pollTh;
pthread_create(&pollTh, NULL, y_socket_poll_fds, (void*)argS);