[GRASS-dev] Re: [GRASS-user] [bug #3087] (grass) high cpu usage on mouse ops

Markus Neteler neteler at itc.it
Fri Jun 23 10:19:15 EDT 2006


On Fri, Jun 23, 2006 at 10:07:40AM +0100, Glynn Clements wrote:
> Markus Neteler wrote:
> > >>This bug's URL:
> > >>http://intevation.de/rt/webrt?serial_num=3087
> > >>
...
> 
> One portable method to sleep for a fraction of a second is to use
> select() with all descriptor sets NULL, e.g.:
> 
>            struct timeval tv;
> 
>            tv.tv_sec = 0;
>            tv.tv_usec = 500000;
> 
>            retval = select(0, NULL, NULL, NULL, &tv);

Surprising question:
 Do we want to turn this somehow into a G_nanosleep()?

Markus




More information about the grass-dev mailing list