[SunHELP] About setjmp and longjmp
Nicholas Dronen
sunhelp at sunhelp.org
Thu Sep 13 15:45:14 CDT 2001
On Wed, Sep 12, 2001 at 02:35:40PM +0800, tianzhenjun at mail.zte.com.cn wrote:
> Hi, setjmp and longjmp are MT-safe? How can I jump from one function to
> another function in MT-program?
The man page for setjmp and longjmp should indicate whether
they are MT-safe. They *should* be MT-safe, because they
are system calls; the kernel handles locking for you,
as least only with respect to *those* two system calls.
I say this not having read the man page for setjmp and
longjmp, so take it with a grain of salt. If I contradict
the man page, I'll happily stand corrected.
Regards,
Nicholas Dronen
More information about the SunHELP
mailing list