🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2641

Avoiding Intuition deadlocks (1.4 suggestion)

#2641
From: Rickard Westman
Date: Sat, 09 Dec 1989 23:20
33 lines
2104 bytes
Intuition deadlocks caused by misapplication of REQ/SIZE/MENUVERIFY are,
unfortunately, quite common.   When the deadlock occurs *every* task is
affected, not only the offending one.

Everybody seems to need this feature, but few are obviously able to handle
it properly.

I am not very surprised.  Knowing when you have to turn off verifying
is not that easy after all.  It is likely that you forget it at some point
where you _might_ have to Wait() for user response.  One case when this is
likely to happen is if you use overlays.  The overlay manager calls DOS at
some (unexpected) time, and DOS brings up a requester ("Insert volume
blablabla").   The stupid user then hits the menu button, and since
MENUVERIFYing is turned on we have a very nasty deadlock.

But is that really necessary?  Couldn't Intuition Wait() for a MENUUP
event (from input.device or whatever) at the same time as it is waiting for
MENUCANCEL/MENUHOT?  If the user releases the menu button before
verification is done, Intuition will act as if it had got a MENUCANCEL
message - and there will be no deadlock. To indicate that something really
went wrong, DisplayBeep() could be called.

Is this possible?  In 1.4?  Please?



-----------------------------------------------------------------------------
 Richard Westman                  |                  |
----------------------------------| EMAIL:           | 'Hmm. In B, Fenby.'
 University of Linkoping          | riw@linus.liu.se |        - Kate Bush
 Sweden                           |                  |
-----------------------------------------------------------------------------
Technical Details
Message-ID: <1471@majestix.ida.liu.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!liuida!riw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!liuida!riw
From: riw@linus.liu.se (Rickard Westman)
Newsgroups: comp.sys.amiga.tech
Subject: Avoiding Intuition deadlocks (1.4 suggestion)
Keywords: Intuition, tech, 1.4
Message-ID: <1471@majestix.ida.liu.se>
Date: 9 Dec 89 23:20:03 GMT
Sender: arash@majestix.ida.liu.se
Reply-To: riw@linus.liu.se
Organization: CIS Dept, Univ of Linkoping, Sweden
Lines: 33