Re: [AD] proposal: al_sleep() |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Mon, 2004-01-19 at 14:25, Eric Botcazou wrote:
> > Attached is the docs patch. I'll commit everything to SF as soon as
> > their CVS services are restored.
>
> + Gives up some CPU time. This can be useful in order to "play nice"
> + with other processes, or simply to make the CPU usage drop. This will
> + look better to users, and also does things like saving battery power
> + and making fans less noisy.
>
> This is enough I think.
>
> + On systems that support it, it works by
> + giving up the rest of the current scheduler timeslice. On other systems,
> + it may sleep for a short while to achieve the same effect.
>
> This is not exact anymore, so we need to drop it.
>
> OK with that change.
>
Ok, applied. And it's a big improvement in my opinion, seeing e.g. the
grabber use about 0% CPU :)
--
Elias Pschernig <elias@xxxxxxxxxx>