Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

posix thread: sched_param undeclared.

Altera_Forum
Honored Contributor II
1,125 Views

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.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
407 Views

-- sched_param param; 

++ struct sched_param param; 

0 Kudos
Reply