Don't sleep while no event triggerd in demo.

This commit is contained in:
fengbojiang 2023-04-12 17:49:16 +08:00
parent 2471d2560c
commit f85c52e341
4 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ void *loop(void *arg)
return NULL;
}
//usleep(100);
sleep(1);
//sleep(1);
}
//printf("get nevents:%d\n", nevents);

View File

@ -83,7 +83,7 @@ void *loop(void *arg)
break;
}
//usleep(100);
sleep(1);
//sleep(1);
}
//printf("get nevents:%d\n", nevents);

View File

@ -140,7 +140,7 @@ void *loop(void *arg)
break;
}
//usleep(100);
sleep(1);
//sleep(1);
}
//printf("thread %d, get nevents:%d\n", thread_id, nevents);

View File

@ -153,7 +153,7 @@ void *loop(void *arg)
return NULL;
}
//usleep(100);
sleep(1);
//sleep(1);
}
//printf("thread %d, get nevents:%d\n", thread_id, nevents);