🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2681

What does Yield do?

#2681
From: Duncan Murdoch
Date: Thu, 16 May 1991 12:15
18 lines
1298 bytes
I'm porting a DOS program to Windows (using TP for Windows), and am having 
trouble getting it to be civilized.  It has some long loops where it 
occasionally writes to one window; the original never gives up control,
so in Windows everything else comes to a halt until it's done.

I'm trying to civilize it by putting occasional calls to Yield into the 
loop, but it's ignoring mouse events..  If other windows have
been invalidated, the Yield works, they get redrawn, and mouse actions
get processed.  However, if all other windows are idle, the Yield doesn't
seem to do anything, even if I've clicked the mouse outside the current
application.  

Is there some way to configure what sort of behaviour Yield has?  It's not
even mentioned in Petzold, and the TPW documentation is minimal.  I don't
have the SDK manual.

Duncan Murdoch
Technical Details
Message-ID: <1991May16.121553.3876@maytag.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!sdd.hp.com!news.cs.indiana.edu!maytag!watstat.waterloo.edu!dmurdoch

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!sdd.hp.com!news.cs.indiana.edu!maytag!watstat.waterloo.edu!dmurdoch
From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch)
Newsgroups: comp.windows.ms.programmer
Subject: What does Yield do?
Message-ID: <1991May16.121553.3876@maytag.waterloo.edu>
Date: 16 May 91 12:15:53 GMT
Sender: news@maytag.waterloo.edu (News Owner)
Organization: University of Waterloo
Lines: 18