Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

posix thread: sched_param undeclared.

Hi guys,

I'm using uCLinux with Microtronix distribution v 1.4 running on Nios II. gcc -v == 3.4.1 Thread model: single

What's wrong with this code?

# include <pthread.h>

int main()

{

sched_param param;

return 0;

}

For some reason, I get sched_param undeclared. Anybody has a clue? I even tried including# include <sched.h> to no avail.

Also, even though thread runs fine, but the "Thread model: single" puzzles me. Shoudnt it be posix? If so, how does "single" affect me?

S.

1 Reply