quote:
Originally posted by RaceProUK
If you wish to use the Windows Sleep function, yes. However, I believe the standard C library has a sleep() too, in unistd.h.
This would be true where the full POSIX API is implemented. MinGW libraries, however, do not have it.
I feel that was a wise decision on their part. While it would have been very easy to #define it to Windows Sleep() call, there are expectations for POSIX sleep() in regard to signal handling, which could not be met -- in other words, it would be broken.