stackprio.c 410 B

123456789101112131415161718192021222324252627
  1. /*
  2. (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /*
  6. Module: Dummy priority routines
  7. Author: Ceriel J.H. Jacobs
  8. Version: $Id$
  9. */
  10. static unsigned prio = 0;
  11. stackprio(n)
  12. unsigned n;
  13. {
  14. unsigned old = prio;
  15. if (n > prio) prio = n;
  16. return old;
  17. }
  18. unstackprio(n)
  19. unsigned n;
  20. {
  21. prio = n;
  22. }