Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12435 Discussions

pthread based application + Simple_Socket_Server Example

Altera_Forum
Honored Contributor II
866 Views

i am trying to implement TCP based Chat Programm on Altera ESDK board. 

 

for this i have write a TCP based Server and Client on linux (ubuntu 12.04 LTS) machine and successfully connect them, i am using pthread over there. 

 

now i am trying to build same application on nios-ii platform and add the following to "Simple Socket Server" Example. 

 

1. #include <pthread.h> 

 

2. in main program 

 

pthread_t myThread; 

create_pthread( &myThread,NULL, myfunction,NULL); 

 

3. function to be called outside the "simple_socket_server" example 

 

void *myfunction() {} 

 

after building the code my simple_socket_server example generate a error saying 

 

error: 'pthread_t' undeclared (first use in the function) 

 

 

1. is ptherad not supported by nios-ii ...? 

2. is any other way to create thread or parallel programming on nios-ii...? 

 

 

 

Regards 

kaushal
0 Kudos
0 Replies
Reply