Product Documentation
Cadence Interprocess Communication SKILL Reference
Product Version IC23.1, June 2023

ipcGetPriority

ipcGetPriority( 
[ o_childId ]
) 
=> x_priority

Description

Gets the current default priority. If a child process handle is given, ipcGetPriority returns the priority under which the relevant child process was invoked.

Arguments

o_childId

Child process handle returned from ipcBatchProcess, ipcBeginProcess, or ipcSkillProcess.

Value Returned

x_priority

Current default priority or the priority under which a child process that associates with the given o_childId was invoked.

Examples

      ipcGetPriority()               ; Default priority 
15
ipcSetPriority(5)
t
ipcGetPriority() ; New default priority
5
cid0 = ipcBeginProcess("pwd")
ipc:7
ipcGetPriority(cid0) ; Priority of the child
5 ; process associates with
; ’cid0’
      ipcSetPriority(10) 
t
ipcGetPriority()
10
cid1 = ipcBeginProcess("ls")
ipc:8
ipcGetPriority(cid1) ; The child process associates
10 ; with ’cid1’ runs at the new
; default priority
      ipcGetPriority(cid0)           ; Priority of the child 
5 ; process associates with
; only tighted to the
; priority under which it
; was invoked.

Related Topics

Interprocess Communication Functions

ipcSetPriority


Return to top
 ⠀
X