🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Wait()

#1562
From: Fabbian G. Dufoe
Date: Fri, 06 Oct 1989 21:27
23 lines
1065 bytes
In article <3930@blake.acs.washington.edu>, dlarson@blake.acs.washington.edu (Dale Larson) writes:
> 	Wait(timerport->mp_SigBit);
> 
> This does not work (hangs), but 

     You need to use
     Wait(1<<timerport->mp_SigBit);

Wait() requires a signal mask, not just the bit number.  By shifting 1 left
as many times as the value in mp_SigBit you create the mask you need.  If
you need to Wait() for more than one signal you can OR the masks:

     Mask = (1<<timerport->mp_SigBit | 1<<otherport->mp_SigBit);
     Wait(Mask);

I hope this answers your question.

--Fabbian Dufoe
  350 Ling-A-Mor Terrace South
  St. Petersburg, Florida  33705
  813-823-2350

UUCP: ...uunet!pdn!jc3b21!fgd3
Technical Details
Message-ID: <764@jc3b21.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pdn!boake2!jc3b21!fgd3
References: <3930@blake.acs.washington.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pdn!boake2!jc3b21!fgd3
From: fgd3@jc3b21.UUCP (Fabbian G. Dufoe)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Wait()
Keywords: Wait() WaitPort() timer.device
Message-ID: <764@jc3b21.UUCP>
Date: 6 Oct 89 21:27:21 GMT
References: <3930@blake.acs.washington.edu>
Organization: St. Petersburg Jr. College, FL
Lines: 23