www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/18/05:48:57

Date: Sun, 18 Apr 1999 13:46:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: __dpmi_yield
In-Reply-To: <371299B8.5BDF3490@lycosmail.com>
Message-ID: <Pine.SUN.3.91.990418134551.22615F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019