Question on dlsym() thread safety

Hi All,

I just wanted to know whether the dlsym() is safe to use across threads with global handle (returned by dlopen).

Kindly provide brief explanation if possible

Thanks in advance
Last edited on
It ought to be reentrant but something different. The symbol won't be moving around in the module, so all calls will return the same value. Why on earth would you want to call it from different threads?
I have a requirement of that kind. Its quite strange, however I have to achieve that. So can we safely use across multiple threads without a lock?
Topic archived. No new replies allowed.