ocm_parco.h 641 B

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