[dpdk-dev] [PATCH v3 3/7] eal: add sleep API

Nick Connolly nick.connolly at mayadata.io
Tue Feb 23 23:06:04 CET 2021


Hi Dmitry,
> +void
> +rte_thread_sleep(unsigned int sec)
> +{
> +	return Sleep(MS_PER_S * sec);
> +}
There's probably no benefit in returning the 'void' value - I'd suggest 
just call Sleep().

Regards,
Nick


More information about the dev mailing list