vhost: combine select with sleep
authorHuawei Xie <huawei.xie@intel.com>
Fri, 6 Mar 2015 05:52:27 +0000 (13:52 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 11:46:46 +0000 (12:46 +0100)
commit31ff0c6a45cfc729fd7003d887fcd2612c3aca6d
tree1736e808352b321314ebc3456f091a7a34bbfa3e
parentdb566f5930ce76b03f6f189e064cc740b5aa3a6f
vhost: combine select with sleep

combine sleep into select when there is no file descriptors to be monitored.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_vhost/vhost_user/fd_man.c