Article View: comp.sys.amiga.tech
Article #1537Wait()
From: Dale Larson
Date: Fri, 06 Oct 1989 04:22
Date: Fri, 06 Oct 1989 04:22
24 lines
1160 bytes
1160 bytes
[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);
This does not work (hangs), but
WaitPort(timerport);
does work properly. Could someone please give me a clue (the RKM's and
AutoDocs just say "if you need to wait for more than one message, use
Wait() rather than WaitIO()" but do not explain how to use it for this
purpose).
If it matters, I am using Manx 3.6a (until my beta 5.0 arrives :-)
--
A lack of prior planning on the part of any programmer
always constitutes an emergency.
Digital Teddy Bear dlarson@blake.acs.washington.edu
Technical Details
Message-ID:
<3930@blake.acs.washington.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!usc!ucsd!ogccse!blake!dlarsonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!usc!ucsd!ogccse!blake!dlarson From: dlarson@blake.acs.washington.edu (Dale Larson) Newsgroups: comp.sys.amiga.tech Subject: Wait() Keywords: Wait() WaitPort() timer.device Message-ID: <3930@blake.acs.washington.edu> Date: 6 Oct 89 04:22:36 GMT Organization: The Evergreen State College, WA Lines: 23