Hi,
SchedSet function is used to fix a scheduling policy and the priority of
a thread.
Syntaxe:
SchedSet(pid_t pid, int tid, int policy, const struct sched_param
*param)
the third argument is a pointer of a structure.
A compiler error " third argument: incompatible pointer type "
occurs.
Did anybody test this function?
thanks,
mohammed taalabi <taalabi@emi.ac.ma> wrote:
Hi,
SchedSet function is used to fix a scheduling policy and the priority of
a thread.
Syntaxe:
SchedSet(pid_t pid, int tid, int policy, const struct sched_param
*param)
the third argument is a pointer of a structure.
Actually, the 4th argument is a pointer to a structure. The 3rd
argument is a simple integer (int policy).
A compiler error " third argument: incompatible pointer type "
occurs.
Did anybody test this function?
Did you call it properly?
I looked at the <sys/neutrino.h> and the header matches the documentation,
and it is against the header that the compiler checks.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.