setjmp() and longjmp() from threads

Jim Wilson wilson@specifixinc.com
Thu Feb 12 23:47:00 GMT 2004


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



More information about the Gcc mailing list