Mail Archives: djgpp/1999/04/18/05:48:57
On Mon, 12 Apr 1999, Adam Schrotenboer wrote:
> I know that __dpmi_yield is non portable, but is there an equivalent on
> Linux systems????
It's called `sleep'.
> Maybe DJGPP should include that function, probably just as a macro that
> calls __dpmi_yield, anyway, just a suggestion.
We already do that; see the source of `sleep' in djlsr202.zip.
One problem with `sleep' is that you must tell how much time to
sleep. `__dpmi_yield' has an advantage that it simply yields the rest
of its time slice, no matter how long is that (the Windows' time slice
can be changed by the user).
- Raw text -