Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site cbmvax.cbmvax.cbm.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!psuvm.bitnet!psuvax1!vu-vlsi!cbmvax!randy From: randy@cbmvax.cbm.UUCP (Randy Weiner) Newsgroups: net.micro.amiga Subject: Re: Q. on signals Message-ID: <296@cbmvax.cbmvax.cbm.UUCP> Date: Tue, 27-May-86 14:30:04 EDT Article-I.D.: cbmvax.296 Posted: Tue May 27 14:30:04 1986 Date-Received: Thu, 29-May-86 01:49:00 EDT References: <8605232155.AA01454@pavepaws> Reply-To: randy@cbmvax.UUCP (Randy Weiner) Organization: Commodore Technology, West Chester, PA Lines: 34 In article <8605232155.AA01454@pavepaws> dillon@PAVEPAWS.BERKELEY.EDU.UUCP writes: > If I WaitIO() on a completed request, will it clear the signal bit? >NOTE: I DID NOT do a Wait(), just a WaitIO(). First, even though you do not explicitly call Wait(), the function WaitIO() does call Wait(), so effectively they work the same. Wait() will clear the signal bit and return the bit that caused a task to wake-up, e.g. waiting for a reply indicating that some IO operation has completed. This same info is also passed back to WaitIO(). >Additionaly, will a SendIO() clear the signal bit before starting the >operation? No, SendIO() is an asynchronous operation (unless the IOQUICK flag is set). It merely posts the request and returns. > Will the signal bit be cleared after a DoIO() ? Yes it is cleared. DoIO is synchronous. Your task is put to sleep until the proper signal is detected. DoIO queues the IO request via BEGINIO, then does a WaitIO. As before, the code for Wait() is executed and so the signal bit is effectively cleared upon return to your task, i.e. after a DoIO, but before your next line of code is hit. -- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Randy Weiner -- Commodore Business Machines <> uucp: {ihnp4|seismo|caip}!cbmvax!randy arpa: cbmvax!randy@seismo (or) randy@cbmvax.UUCP@{seismo | harvard} TEL: 215-431-9180