Path: 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 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<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<mp_SigBit | 1<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