Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!microsoft!bradch From: bradch@microsoft.UUCP (Bradford Christian ms1) Newsgroups: comp.sys.amiga.tech Subject: Re: Wait() Keywords: Wait() WaitPort() timer.device Message-ID: <7981@microsoft.UUCP> Date: 7 Oct 89 01:10:07 GMT References: <3930@blake.acs.washington.edu> Reply-To: bradch@microsoft.UUCP (Bradford Christian ms1) Organization: Microsoft Corp., Redmond WA Lines: 16 In article <3930@blake.acs.washington.edu> dlarson@blake.acs.washington.edu (Dale Larson) writes: > >In tryig to write some code which does not busy-loop but does need to check >on several events, I am trying to use Wait(). As the simplest first step, >I > Wait(timerport->mp_SigBit); Use: Wait(1L << timerport->mp_SigBit); You can OR togeather all the bits you need to wait on like this: Wait((1L << timerport1->mp_SigBit) | (1L << timerport2->mp_SigBit)); Thanks for not busy looping! BradCh