Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Beer 29dfb4da84 Stop using usleep().
Use nanosleep() on Unix-like systems, and Sleep() on Windows.
2012-08-14 15:51:22 +12:00
Daniel Beer 31e8dabd09 Fix delay_s for Windows. 2012-05-10 11:41:00 +12:00
Daniel Beer 6fd161faa7 Add delay_s() for portable sleep() substitute. 2012-05-10 10:00:12 +12:00
Daniel Beer a914bc732d Add support for building on Cygwin.
The symbol __Windows__ is defined when building a native (non-Cygwin)
binary.
2012-04-25 11:02:22 +12:00
Daniel Beer b3ffff5945 win32: protect access to ctrlc_flag with critical section.
On Windows, console handlers are run in a separate thread, without
actually interrupting the main thread.
2011-09-19 04:33:58 +12:00
Daniel Beer d4fee98904 Restructuring: moved low-level utility code to util/ 2011-09-14 16:19:30 +12:00
Renamed from util.h (Browse further)