🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cooperative Multitasking?

#1023
From: Bruce King
Date: Fri, 04 Jan 1991 08:03
8 lines
921 bytes
  Imbed a call to PeekMessage in your processing loop.  Windows will reschedule,
allowing other apps to run, or if no other app wishes to run, return control
to your program immediately.  Alternatively you can issue a call to Yield()
or GetMessage.  PeekMessage is the call of my choice though; it reschedules 
without forcing you to remove the message from the queue and deal with it.

  Bruce King / bruceki@microsoft (work) / bruceki@polari (home) 
Technical Details
Message-ID: <3080@polari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!pilchuck!nwnexus!sumax!polari!bruceki
References: <jan.662932330@prisma>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!pilchuck!nwnexus!sumax!polari!bruceki
From: bruceki@polari.UUCP (Bruce King)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Cooperative Multitasking?
Keywords: multitasking
Message-ID: <3080@polari.UUCP>
Date: 4 Jan 91 08:03:11 GMT
References: <jan.662932330@prisma>
Distribution: comp
Organization: Seattle Online Public Unix (206) 328-4944
Lines: 8