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
+3 -1
View File
@@ -62,6 +62,7 @@ struct y_socket_t{
pthread_mutex_t *mut_nodes;
int go_on;
pthread_mutex_t *mut_go_on;
int nb_workers;
};
@@ -74,7 +75,8 @@ struct argdst {
};
//struct y_socket_t * y_socket_create_(char * port);
struct y_socket_t * y_socket_create(char * port, size_t size_fds);
struct y_socket_t * y_socket_create(char * port, size_t size_fds, int nb_workers);
struct y_socket_t * y_socket_create_(char * port);
void y_socket_free(struct y_socket_t *socket);