Article View: comp.sys.amiga.tech
Article #1548Re: Wait()
From: Michael Sinz - CATS
Date: Fri, 06 Oct 1989 12:38
Date: Fri, 06 Oct 1989 12:38
38 lines
1902 bytes
1902 bytes
In article <3930@blake.acs.washington.edu> dlarson@blake.acs.washington.edu (Dale Larson) writes:
>[go ahead, eat my breakfast]
>
>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);
Note that mp_SigBit is the BIT NUMBER and the Wait() used the bit mask so
that you can wait on multiple signals. So...
Wait(1L << (timerport->mp_SigBit));
or if you have a few more...
Wait( (1L << (timerport->mp_SigBit)) |
(1L << (otherport->mp_SigBit)) |
(1L << (inputport->mp_SigBit)) );
>
>This does not work (hangs), but
>
> WaitPort(timerport);
>
>does work properly. Could someone please give me a clue (the RKM's and
[remainder deleted...]
>
> Digital Teddy Bear dlarson@blake.acs.washington.edu
/----------------------------------------------------------------------\
| /// Michael Sinz -- CATS/Amiga Software Engineer |
| /// PHONE 215-431-9422 UUCP ( uunet | rutgers ) !cbmvax!mks |
| /// |
|\\\/// When people are free to do as they please, |
| \XX/ they usually imitate each other. |
\----------------------------------------------------------------------/
Technical Details
Message-ID:
<8110@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!oliveb!amiga!cbmvax!mksReferences:
<3930@blake.acs.washington.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!oliveb!amiga!cbmvax!mks From: mks@cbmvax.UUCP (Michael Sinz - CATS) Newsgroups: comp.sys.amiga.tech Subject: Re: Wait() Keywords: Wait() WaitPort() timer.device Message-ID: <8110@cbmvax.UUCP> Date: 6 Oct 89 12:38:27 GMT References: <3930@blake.acs.washington.edu> Reply-To: mks@cbmvax.UUCP (Michael Sinz - CATS) Organization: Commodore Technology, West Chester, PA Lines: 38