Add calling usleep() to avoid busy waiting 43/274343/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 27 Apr 2022 00:57:41 +0000 (09:57 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 27 Apr 2022 00:57:41 +0000 (09:57 +0900)
commit81c05b1068c4957abe94cadb2e4da5f193c72a14
treeed119fe4e03af3a60e83c3bc192d71b40708ed09
parent05d9f5374bc40501530f7ad9bb0de790d05acad6
Add calling usleep() to avoid busy waiting

If the socket is non-blocking mode, while loop can make busy waiting.
To avoid busy waiting, this patch adds calling usleep() with 100 ms.

Change-Id: I41d25ee6f7c314c29920b48b00a8b94c67c6825f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
aul/socket/socket.cc
src/aul_sock.c