🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1487

Re: Controlling the Event Loop...

#1487
From: Mark Linton
Date: Tue, 18 Jun 1991 16:38
12 lines
1231 bytes
In article <4881@meaddata.meaddata.com>, curt@meaddata.com (Curt Kohler) writes:
|> Is there a method or way way to either tell the application to eat all
|> these extraneous events or to flush out the input buffer like the
|> WorldView::ClearInput() method which could be called immediately following
|> a return from one of these long duration database calls?

It should work to call World::read with zero timeout until it returns false, e.g.,

    while (world->read(0, 0, event));

This will ensure that any expose or resize events that occurred while accessing the database
will be processed, while queued user events will be ignored.
Technical Details
Message-ID: <1991Jun18.163832.5412@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!fido.asd.sgi.com!marktwain.rad.sgi.com!linton
References: <4881@meaddata.meaddata.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!fido.asd.sgi.com!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: Controlling the Event Loop...
Message-ID: <1991Jun18.163832.5412@fido.asd.sgi.com>
Date: 18 Jun 91 16:38:32 GMT
References: <4881@meaddata.meaddata.com>
Sender: news@fido.asd.sgi.com (Usenet News Admin)
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 12