Date: Sun, 18 Apr 1999 13:46:11 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Adam Schrotenboer cc: djgpp AT delorie DOT com Subject: Re: __dpmi_yield In-Reply-To: <371299B8.5BDF3490@lycosmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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).