Change-Id: Ib6432a072cb59bf03803915c497916695993a340
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
#include "sensor_log.h"
+#define SLEEP_100_MS usleep(100000)
+
using namespace ipc;
stream_socket::stream_socket()
if (len < 0) {
if ((errno == EINTR) || (errno == EAGAIN) || (errno == EWOULDBLOCK)) {
- usleep(1);
+ SLEEP_100_MS;
continue;
}
if (len < 0) {
if ((errno == EINTR) || (errno == EAGAIN) || (errno == EWOULDBLOCK)) {
- usleep(10000);
+ SLEEP_100_MS;
continue;
}