/*
 * pri.c
 * 
 * Simple priority alteration routine for Yak.
 * 
 * MWS, 12-Sep-92
 */
#include <exec/types.h>
#include <exec/tasks.h>
#include <proto/exec.h>

#include "yak.h"

static LONG priority[3] = {0,0,5};

void
MyPri(UWORD which)
{
	static BOOL firsttime = TRUE;
	LONG oldpri;

	oldpri = SetTaskPri(FindTask(NULL), priority[which]);
	if (firsttime == TRUE)
	{
		priority[ORIGINAL] = oldpri;
		firsttime = FALSE; 
	}
}