Path: 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 [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