trying to find why too much cpu load!
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user