summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Laner <laner@itestra.de>2013-10-22 15:13:28 +0200
committerStefan Laner <laner@itestra.de>2013-10-22 15:13:28 +0200
commite633fcbff0187f0b3d422af650357d926fed6055 (patch)
tree223ceb0363516914706963b6fd0e77e28f7b4056
parent3f95a356a8f74951c5c41eb498fe21e5c38d8c6e (diff)
downloadgenivi-common-api-runtime-e633fcbff0187f0b3d422af650357d926fed6055.tar.gz
added usleep (workaround) definition for windows
-rwxr-xr-xsrc/CommonAPI/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CommonAPI/types.h b/src/CommonAPI/types.h
index c4f41e3..dcfc4e9 100755
--- a/src/CommonAPI/types.h
+++ b/src/CommonAPI/types.h
@@ -24,6 +24,12 @@
static void f(void)
#endif
+
+#ifdef WIN32
+#define usleep(micSec) \
+ std::this_thread::sleep_for(std::chrono::microseconds(micSec))
+#endif
+
namespace CommonAPI {
enum class AvailabilityStatus {