trying to find why too much cpu load!

This commit is contained in:
2025-07-02 22:11:46 +02:00
parent 3c5cae31cc
commit d4cf8a1782
6 changed files with 71 additions and 33 deletions
+1
View File
@@ -331,6 +331,7 @@ void* y_socket_handler_(void *arg){
// printf("debug: kill_all\n");
}
}
return NULL;
}
void *y_socket_poll_fds(void *arg){
struct y_socket_t * argSock = (struct y_socket_t*)arg;
+1 -1
View File
@@ -164,7 +164,7 @@ TEST(searchNode){
TEST(pollThread){
struct y_socket_t *argS=y_socket_create("1600", 2, 3);
struct y_socket_t *argS=y_socket_create("1600", 2, 1);
pthread_t pollTh;
pthread_create(&pollTh, NULL, y_socket_poll_fds, (void*)argS);