ocm_parco.h 652 B

1234567891011121314151617181920212223
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* parco.h - Define names for simulation routines
  7. *
  8. * This file is to be included by users of the higher-level routines
  9. *
  10. */
  11. void pc_begin(), resumenext(), parend(), resume(), coend();
  12. int pc_fork();
  13. #define nullid ((int *) 0 - (int *) 0)
  14. /* I.e. a 0 of type "pointer difference" */
  15. #define parbegin(sbrk) pc_begin(sbrk, nullid)
  16. #define parfork() pc_fork(nullid)
  17. #define cobegin(sbrk, id) pc_begin(sbrk, id)
  18. #define cofork(id) pc_fork(id)
  19. extern int deadlock;