| #pragma once |
| |
| #ifndef igs_resource_sleep_h |
| #define igs_resource_sleep_h |
| |
| #include "igs_os_type.h" |
| |
| #ifndef IGS_RESOURCE_IFX_EXPORT |
| #define IGS_RESOURCE_IFX_EXPORT |
| #endif |
| |
| namespace igs { |
| namespace resource { |
| |
| IGS_RESOURCE_IFX_EXPORT void sleep_m(const DWORD milli_seconds); |
| } |
| } |
| |
| #if !defined _WIN32 |
| #include <ctime> // time_t, ::nanosleep() |
| namespace igs { |
| namespace resource { |
| |
| |
| |
| |
| void sleep_sn(const time_t seconds, const long nano_seconds); |
| } |
| } |
| #endif |
| |
| #endif |