Article View: comp.sys.amiga.tech
Article #1557Re: Wait()
From: Bradford Christian ms1
Date: Sat, 07 Oct 1989 01:10
Date: Sat, 07 Oct 1989 01:10
16 lines
1005 bytes
1005 bytes
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
Technical Details
Message-ID:
<7981@microsoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!microsoft!bradchReferences:
<3930@blake.acs.washington.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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