Added support for interuptable windows sleep

This commit is contained in:
Jack Reacher 2016-02-06 02:45:10 -05:00
commit 00e6cc3a6c
2 changed files with 27 additions and 5 deletions

12
hydra.h
View file

@ -132,9 +132,19 @@
#define INET_ADDRSTRLEN 16
#endif
int sleepn(time_t seconds);
#ifndef _WIN32
int sleepn(time_t seconds);
int usleepn(long int useconds);
#endif
#ifdef _WIN32
int sleepn(unsigned int seconds);
int usleepn(unsigned int useconds);
#endif
#define _HYDRA_H
#endif