priority in MsgSendPulse

One of the arguments of MsgSendPulse() is ‘int priority’.
Documentation is a bit vague about this arg. It says
“The priority argument must be within the range of valid priorities,
that you can discover using sched_get_priority_min() and
sched_get_priority_max().”

Can anybody tell me if I can use -1 for this argument when I simply
need to inherit the existing priority or I have to call getprio() and
use its return as an argument?

The funny thing is that there are two calls of MsgSendPulse() in mig4nto
and one of them uses -1 and another getprio(). So which one is correct?

cheers,
Igor

AFAIK, using -1 is deprecated, but happens to still work :wink:

  • igor

“Igor Levko” <no_spam@nihrena.net> wrote in message
news:a2kbr0$3jc$1@inn.qnx.com

One of the arguments of MsgSendPulse() is ‘int priority’.
Documentation is a bit vague about this arg. It says
“The priority argument must be within the range of valid priorities,
that you can discover using sched_get_priority_min() and
sched_get_priority_max().”

Can anybody tell me if I can use -1 for this argument when I simply
need to inherit the existing priority or I have to call getprio() and
use its return as an argument?

The funny thing is that there are two calls of MsgSendPulse() in mig4nto
and one of them uses -1 and another getprio(). So which one is correct?

cheers,
Igor