Newsgroups: comp.sys.transputer
From: jdd@aiki.demon.co.uk (Jim Dixon)
Subject: Re: Difference between ProcWait and ProcAfter
Organization: AIKI Parallel Systems Ltd
Date: Fri, 19 Aug 1994 18:48:35 +0000
Message-ID: <777322115snz@aiki.demon.co.uk>

In article <MUENKEL.94Aug15141318@daedalus.tnt.uni-hannover.de>
           muenkel@daedalus.tnt.uni-hannover.de "Heiko Muenkel" writes:
> Does anybody know the difference between the two Inmos C functions
> ProcWait and ProcAfter? I think, that the first function has a relative
> time parameter and the second an absolute, but I can't believe, that
> this is the only difference.

The argument to ProcWait is the number of timer ticks to wait.	The
argument to ProcAfter is the timer value after which the function
should be rescheduled.	So if the time now is t0 and you want to
resume n ticks from now, you can call
    ProcWait (n);
 or
    ProcAfter (ProcTimePlus(ProcTime(), n));

The former is a convenient abbreviation for the latter.
-- 
+-----------------------------------+--------------------------------------+
|  Jim Dixon<jdd@aiki.demon.co.uk>  |	    Compuserve: 100114,1027	   |
|AIKI Parallel Systems Ltd + parallel processing hardware & software design|
|	     voice +44 272 291 316  | fax +44 272 272 015		   |
+-----------------------------------+--------------------------------------+

