This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 12a2e14a8 example/poll: add delay for poll testcase
12a2e14a8 is described below
commit 12a2e14a83b07834f297bd3d94874c7310283925
Author: ligd <[email protected]>
AuthorDate: Mon Feb 6 17:13:31 2023 +0800
example/poll: add delay for poll testcase
for should setup the fifo firstly
Signed-off-by: ligd <[email protected]>
---
examples/poll/poll_main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/examples/poll/poll_main.c b/examples/poll/poll_main.c
index 4c4219af5..888922c32 100644
--- a/examples/poll/poll_main.c
+++ b/examples/poll/poll_main.c
@@ -156,6 +156,10 @@ int main(int argc, FAR char *argv[])
}
#endif
+ /* Let the pthreads run first */
+
+ sleep(1);
+
/* Loop forever */
for (count = 0; ; count++)