On Wed, May 29, 2002 at 11:45:45AM -0500, David M. Lloyd wrote:
> Dan may have been referring to the fact that on some key platforms
> (Solaris included) (sig)setjmp/longjmp are officially marked as unsafe for
> use inside of threads.

Is it really unsafe on these platforms?
- According to the Unix 98 specification, (sig)setjmp/longjmp must be
  thread-safe.  Recent versions of Solaris are supposed to conform to
  this standard.
- The Solaris Multithreaded Programming Guide says:
  " Note that you can use sigsetjmp(3C) and siglongjmp(3C) in
    multithreaded programs, but be careful that a thread never does a
    siglongjmp() using the results of another thread's sigsetjmp(). "
  (http://www.cs.columbia.edu/~hgs/teaching/isp/threads.pdf)

-- Jerome


Reply via email to