ack/lang/occam/lib/ocm_parco.h

19 lines
477 B
C
Raw Normal View History

1987-02-24 18:36:02 +00:00
/* parco.h - Define names for simulation routines
*
* This file is to be included by users of the higher-level routines
*
*/
void pc_begin(), resumenext(), parend(), resume(), coend();
int pc_fork();
#define nullid ((int *) 0 - (int *) 0)
/* I.e. a 0 of type "pointer difference" */
#define parbegin(sbrk) pc_begin(sbrk, nullid)
#define parfork() pc_fork(nullid)
#define cobegin(sbrk, id) pc_begin(sbrk, id)
#define cofork(id) pc_fork(id)
extern int deadlock;