Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Reg -sem_wait in io-pkt thread.: (3 Items)
   
Reg -sem_wait in io-pkt thread.  
Hi ,

I have download the sample ethernet driver from QNX 6.4.1.
1. Create a new thread using  pthread function in io-pkt entry function.
2. I have created a semaphore and wait on it in phtread handler function.

While loading sample ethernet driver, its crashing.

I think its crashing because of sem_wait.
is there any possibility to use sem_wait in the io-pkt thread?

Please help me on this.  

Thanks and Regards
Janani
Re: Reg -sem_wait in io-pkt thread.  
On Tue, Jan 12, 2010 at 05:28:10AM -0500, Janani K wrote:
> Hi ,
> 
> I have download the sample ethernet driver from QNX 6.4.1.
> 1. Create a new thread using  pthread function in io-pkt entry function.
> 2. I have created a semaphore and wait on it in phtread handler function.
> 
> While loading sample ethernet driver, its crashing.
> 
> I think its crashing because of sem_wait.
> is there any possibility to use sem_wait in the io-pkt thread?
> 

The use of sem_wait() should be fine.

Regards,

-seanb
Re: Reg -sem_wait in io-pkt thread.  
Hi Sean,

I m not using  nw_pthread_create function to create a thread instead i used pthread_create() function.

When i used sem_wait in pthread handler function, its crashing.


Thanks and Regards
K.Senthil