This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setjmp() and longjmp() from threads


Bhaskara Narasimha Raju Dantuluri wrote:
Can I use the setjmp() and longjmp() calls from a thread?I'm using the
posix threads package on solaris.
The man page says that these calls are not thread-safe.

This is a library issue not a gcc issue. And since you are using solaris, this would not even be a GNU library issue either, but rather a Sun library issue. You will have to ask Sun or a Sun user group.


Since the man page says they are no thread-safe, then it seems very likely that it is not safe to use them in threads.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]