2021-04-06 16:34 (UTC+0200), Morten Brørup: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dmitry Kozlyuk > > Sent: Sunday, April 4, 2021 1:41 AM > > > > POSIX sleep(3) is missing from Windows. > > Add generic rte_thread_sleep() to suspend current OS thread. > > > > Signed-off-by: Dmitry Kozlyuk <dmitry.kozl...@gmail.com> > > Acked-by: Khoa To <k...@microsoft.com> > > Acked-by: Ray Kinsella <m...@ashroe.eu> > > How is this better than the rte_delay_us_sleep() function in rte_cycles.
Honestly, I just assumed the sleep() shim existed for a reason. Now that you pointed to it, I think indeed no new API is needed. I wonder why rte_delay_us_sleep() is not used throughout DPDK. Should their usages be converted as soon as code is enabled for Windows?