mirror of https://github.com/F-Stack/f-stack.git
Don't sleep while no event triggerd in demo.
This commit is contained in:
parent
2471d2560c
commit
f85c52e341
|
@ -93,7 +93,7 @@ void *loop(void *arg)
|
|||
return NULL;
|
||||
}
|
||||
//usleep(100);
|
||||
sleep(1);
|
||||
//sleep(1);
|
||||
}
|
||||
//printf("get nevents:%d\n", nevents);
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ void *loop(void *arg)
|
|||
break;
|
||||
}
|
||||
//usleep(100);
|
||||
sleep(1);
|
||||
//sleep(1);
|
||||
}
|
||||
//printf("get nevents:%d\n", nevents);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue