Newsgroups: comp.sys.transputer
From: ling@coral.cs.jcu.edu.au (Ling Shi)
Subject: Q: Is there a ProcAltTimeFail() ? 
Organization: Dept Computer Science, James Cook University, Townsville
Date: Wed, 9 Mar 94 00:11:37 GMT
Message-ID: <1994Mar9.001137.1105@marlin.jcu.edu.au>

Hi netter,

I want to set a timeout in the following code:

    :
   c = ProcAlt ( ch1, ch2, NULL ) ;
   if  timeout 
      ...
   else
   {
     switch (c)
     {
       case 0 :
    :

Is there a timeout option for ProcAlt() -- like ChanInTimeFail() ? 

or is there a alternate way to do this?

Thanks in advance.

(I use INMOS ANSI C Toolset D7214 on a PC) 
 


Regards, 

Ling Shi 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Department of Computer Science    |                                    |
| James Cook University             |             \   _   /              |
| Townsville QLD 4811               |   *__________\_(O)_/__________*    |
| Australia                         |       *  @  (](_o_)[)  @  *        |
|phone:  +61 77 815851              |              ^  @  ^               |
|                                   |                                    |
|E-Mail: ling@coral.cs.jcu.edu.au   |                                    |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

