pthread issue...

wilson k.j wilson_kjacob@yahoo.com
Wed Mar 3 05:39:00 GMT 2004


Hi, 

We have a problem with pthread library on Linux
9.0/gcc 3.2.2. 
We have written a wrapper for pthread calls on linux
8.0/gcc 3.2, and this 
is built as an archive library - And one of our
products is using this 
lirary. 
Now we are trying to build our product on linux
9.0/gcc 3.2.2, and uses our 
archive threads library (which is built on 3.2/8.0). 
The linking is done as "-lwrapperlibrary -lpthread" 

The application crashes or sometimes hangs at
pthread_mutex_lock(). 

But works fine, when we rebuild the threads library on
linux 9.0/gcc 3.2.2., 
but we may want to avoid this - 
We even tried linking with pthread_nonshared.a, but
didnt help. 

Can someone give details on the difference in the
pthreads implemantion, and 
why this pthread_nonshared.a library. 

Thanks in advance 
Regards 
Wilson 
www.wsspl.com 


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youÂ’re looking for faster
http://search.yahoo.com



More information about the Gcc mailing list