cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Question on dlsym() thread safety
Question on dlsym() thread safety
May 26, 2011 at 12:26pm UTC
nkumar85
(30)
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
May 26, 2011 at 12:26pm UTC
May 26, 2011 at 3:42pm UTC
kbw
(9488)
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?
May 26, 2011 at 4:34pm UTC
nkumar85
(30)
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.