🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetMsg, PutMsg - Question

#13886
From: Andy Heffernan
Date: Sat, 24 Feb 1990 00:31
14 lines
1133 bytes
In article <3197@ssc-vax.UUCP> dano@ssc-vax.UUCP (Dan Olson) writes:
>Just curious, do GetMsg and PutMsg automatically Forbid so that two
>tasks cannot accidently muck each other up if there just happens to
>be task switching while both tasks are hacking at the same port.

Actually, they DISABLE on entry and ENABLE on exit since they fool
with the list of messages attached to a given MsgPort, and an interrupt
routine could sneak in and attach a message to that MsgPort if the
routine was merely forbidden.

-- 
-------------------------------------------------------------------------
  Andy Heffernan					uunet!glyph!ahh
"'Iodine!' shrieked Clavius the Mage.  'I must have iodine!'"
Technical Details
Message-ID: <503@glyph.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!jarthur!uunet!glyph!ahh
References: <3197@ssc-vax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!jarthur!uunet!glyph!ahh
From: ahh@glyph.UUCP (Andy Heffernan)
Newsgroups: comp.sys.amiga.tech
Subject: Re: GetMsg, PutMsg - Question
Summary: woof
Message-ID: <503@glyph.UUCP>
Date: 24 Feb 90 00:31:37 GMT
References: <3197@ssc-vax.UUCP>
Reply-To: ahh@glyph.UUCP (Andy Heffernan)
Organization: Cinnamon Toast Crunch Research Labs
Lines: 14