Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!labrea!rocky!ali From: ali@rocky.STANFORD.EDU (Ali Ozer) Newsgroups: comp.sys.amiga Subject: Re: ChangePri() exec call. Message-ID: <461@rocky.STANFORD.EDU> Date: Fri, 31-Jul-87 10:14:55 EDT Article-I.D.: rocky.461 Posted: Fri Jul 31 10:14:55 1987 Date-Received: Sat, 1-Aug-87 22:14:48 EDT References: <5163@utcsri.UUCP> Reply-To: ali@rocky.UUCP (Ali Ozer) Distribution: world Organization: Stanford University Computer Science Department Lines: 21 Keywords: It's SetTaskPri In article <5163@utcsri.UUCP> flaps@utcsri.UUCP (Alan J Rosenthal) writes: >I've found references to this call in both RKMs, but no parameter specs. >How do I call it? And is the priority change to an absolute number or >relative? Or was it deleted from 1.2? If so, how do I change my priority? >I want to start a task at a slightly high priority and then have it change >its priority back to zero once it's finished initializing. You can use SetTaskPri() to do what you want to do --- oldpriority = SetTaskPri (task, newpriority); Thus you simply do: struct Task *me; if (me = FindTask(NULL)) oldpri = SetTaskPri(me, newpri); and later you can set the priority back to oldpri. The priority you supply is an absolute value. Ali Ozer, ali@rocky.stanford.edu