Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual—522629-013
12-33
PRIORITY Procedure
(Superseded by PROCESS_SETINFO_ Procedure
PRIORITY Procedure
(Superseded by PROCESS_SETINFO_
Procedure or PROCESS_GETINFOLIST_
Procedure )
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Summary
The PRIORITY procedure enables a process to examine or change its initial priority.
The current priority is updated to the initial priority value when the process waits for an
external event to occur.
Syntax for C Programmers
This procedure does not have a C syntax, because it is superseded and should not be
used for new development. This procedure is supported only for compatibility with
previous software.
Syntax for TAL Programmers
Parameters
old-priority returned value
INT
returns a value that is either:
•
The current priority of the process if new-priority is not specified
•
The previous value of the current priority when new-priority is specified
•
A 0, indicating that the specified new-priority value is out of range and
that the priority was not changed
Note. This procedure is supported for compatibility with previous software and should not be
used for new development.
old-priority := PRIORITY ( [ new-priority ] ! i
,[ init-priority ] ); ! o