[comp.sys.amiga.tech] GetMsg, PutMsg - Question

dano@ssc-vax.UUCP (Dan Olson) (02/21/90)

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.

-- 
Dan Olson  (UUCP ..!uw-beaver!ssc-vax!dano)

ahh@glyph.UUCP (Andy Heffernan) (02/24/90)

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!'"