🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A bug in ARP 1.3?

#2697
From: Paul Castonguay
Date: Tue, 12 Dec 1989 23:02
17 lines
1133 bytes
What does the following line mean?

    Wait(1 << Window->UserPort->mp_SigBit)

I know it causes my program to wait for a response in the IDCMP port,
but how exactly does this work?

->  means structure member notation for pointers

<<  means shift left, a bitwise operator, which can also be enterpreted
    as multiplication by 2

So, why should shifting the mp_SigBit member of the window's UserPort
one bit position to the left magically cause my application to wake up 
from a sleeping condition and recognize the presence of an incoming message?

                                  -Paul Castonguay
Technical Details
Message-ID: <148@bucsb.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!bu-cs!bucsb!castong
References: <14752@boulder.Colorado.EDU> <3598@jhunix.HCF.JHU.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!bu-cs!bucsb!castong
From: castong@bucsb.UUCP (Paul Castonguay)
Newsgroups: comp.sys.amiga.tech
Subject: Re: A bug in ARP 1.3?
Message-ID: <148@bucsb.UUCP>
Date: 12 Dec 89 23:02:06 GMT
References: <14752@boulder.Colorado.EDU> <3598@jhunix.HCF.JHU.EDU>
Reply-To: castong@bucsb.bu.edu (paul castonguay)
Followup-To: comp.sys.amiga.tech
Distribution: na
Organization: Boston Univ Comp. Sci.
Lines: 17