Initial revision
This commit is contained in:
27
lib/libm2/stackprio.c
Executable file
27
lib/libm2/stackprio.c
Executable file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
(c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
|
||||
/*
|
||||
Module: Dummy priority routines
|
||||
Author: Ceriel J.H. Jacobs
|
||||
Version: $Header$
|
||||
*/
|
||||
|
||||
static unsigned prio = 0;
|
||||
|
||||
stackprio(n)
|
||||
unsigned n;
|
||||
{
|
||||
unsigned old = prio;
|
||||
|
||||
if (n > prio) prio = n;
|
||||
return old;
|
||||
}
|
||||
|
||||
unstackprio(n)
|
||||
unsigned n;
|
||||
{
|
||||
prio = n;
|
||||
}
|
||||
Reference in New Issue
Block a user