[GRASS-dev] compiling error for r.le.setup in Windows: sleep not implemented

Glynn Clements glynn at gclements.plus.com
Mon May 7 05:19:20 EDT 2007


Hamish wrote:

> > How difficult is implementing a windows version of sleep ?
> 
> no idea, but having a fn which the programmer intends to do something
> but it fails to do, isn't so nice.

Does _sleep() work? It's declared in MinGW's stdlib.h, with a note
that it's deprecated in favour of Sleep() (from Kernel32.dll).

Otherwise, you could busy-wait on time(); it's less than ideal, but
should work.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list