Go to main content

Multithreaded Programming Guide

Exit Print View

Updated: March 2019
 
 

Nonlocal Goto: setjmp() and longjmp()

The scope of setjmp() and longjmp() is limited to one thread, which is acceptable most of the time. However, the limited scope does mean that a thread that handles a signal can execute a longjmp() only when a setjmp() is performed in the same thread.