NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: thread-stub related query
Hi,
Ok i got the point.
But in my case i support dlopen() of threaded libraries from a non-threaded
binary. So this behavior of thread-stub of aborting the application
can be changed
in my case?
I mean i can ignore the case and return 0 from mutex_lock stub instead
of aborting?
I wanted a confirmation on the implementation of thread-stubs.
Is it with respect to any specification?
Could you please help me in this regard.
Thanks & Regards,
Channa
2009/7/3 Martin Husemann <martin%duskware.de@localhost>:
> On Fri, Jul 03, 2009 at 06:40:45PM +0530, Channa wrote:
>> This is because
>> 1. In the application when the library libexample.so is opened the pthread
>> library constructor is called since libxx.so is linked with pthread ,
>> which sets the value __isthreaded to 1.
>
> Exactly - we do not support dlopen() of threaded libraries from a non-threaded
> binary. So this behaviour is by design.
>
> Martin
>
Home |
Main Index |
Thread Index |
Old Index