🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #100

Re: I got the EventV Blues.

#100
From: Philip R. Banks
Date: Mon, 03 Aug 1992 02:10
36 lines
2326 bytes
Brian.Brunswick@cl.cam.ac.uk (Brian Brunswick on ely.cl.cam.ac.uk) writes:

> Could it be that you are relying on the callbacks being sequenced?
> I'm not at all sure that they are... I remember using a test program
> with callafters and callbacks, but don't know which one of the two
> was mixing things up?

  You are right, callbacks are not guaranteed to occur in any order or time
interval. Thats not the problem. The Callback code is *always* being called
properly and indeed the code being called doesn't care which order the data
comes in, all the information needed is contained in R12 passed to it by the
OS on entry.

> What happens if two events happen before the callback goes off?

   The two get enqueued and whichever one comes in last is the one noticed
the most by the user. (As far as I can tell that is) The problem is not so
much that the events are detected but that the OS seems to be not receiving
them *after* my code has finished doing the initial processing. Indeed
presuming for a second that even only one CallBack is permitted during heavy
loads this shouldn't affect the code or the OS as I reset the flags on exit
from the EventV code. (I assuming that the V flag would be set if the
Callback couldn't be arranged.)

   What makes it stranger is that the same code handles mouse and keyboard
events and it is *only* the mouse events that are suffering. All key presses
are making it through just fine.

    Philip

--
Philip R. Banks  Syntax: mail < banks_p@kosmos.wcc.govt.nz >            @@@@@/|
                                                                        @@@@/#|
                                                                        @@@/##|
I breathe the air, While they're running in a rat race,                 @@/---|
Way above it all, Standing on higher ground. ---A.P.P.                  @/    |
Technical Details
Message-ID: <25kIU7j017n@khantazi.welly.gen.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!cavebbs!tornado!khantazi!banksie
References: <24A9nhj017n@khantazi.welly.gen.nz> <1992Aug1.150444.9705@cl.cam.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!cavebbs!tornado!khantazi!banksie
From: banksie@khantazi.welly.gen.nz (Philip R. Banks)
Newsgroups: comp.sys.acorn.tech
Subject: Re: I got the EventV Blues.
Message-ID: <25kIU7j017n@khantazi.welly.gen.nz>
Date: Mon, 3 Aug 1992 14:10:54 +1200
References: <24A9nhj017n@khantazi.welly.gen.nz> <1992Aug1.150444.9705@cl.cam.ac.uk>
Reply-To: banks_p@kosmos.wcc.govt.nz
Organization: My Arc.
Lines: 36