endurox.tpsprio¶
- endurox.tpsprio(prio: int, flags: int = 0) None ¶
Set priority for next ATMI service call. prio can be absolute value in such case it must be in range of 1..100 (if flag
TPABSOLUTE
is used). In relative mode, priority range must be in range of -100..100. Default mode for flags (value 0) is relative mode.Priority is used in epoll and kqueue poller modes. In other modes setting is ignored and no message prioritization is used.
For more details see C call tpsprio(3).
- Raises:
AtmiException –
Following error codes may be present:TPEINVAL
- prio is out of range.- Parameters:
prio (int) – Service call priority.
flags (int) – Flag
TPABSOLUTE
. Default is 0.