L4Re - L4 Runtime Environment
setjmp.h File Reference

Inter-thread setjmp/longjmp. More...

#include <l4/sys/types.h>
#include <l4/sys/compiler.h>
+ Include dependency graph for setjmp.h:

Go to the source code of this file.

Functions

int l4_thread_setjmp (l4_thread_jmp_buf env)
 inter-thread setjmp More...
 
void l4_thread_longjmp (l4_threadid_t thread, l4_thread_jmp_buf env, int val)
 inter-thread longjmp More...
 

Detailed Description

Inter-thread setjmp/longjmp.

Date
11/26/2004
Author
Jork Loeser jork..nosp@m.loes.nosp@m.er@in.nosp@m.f.tu.nosp@m.-dres.nosp@m.den..nosp@m.de

Definition in file setjmp.h.

Function Documentation

◆ l4_thread_longjmp()

void l4_thread_longjmp ( l4_threadid_t  thread,
l4_thread_jmp_buf  env,
int  val 
)

inter-thread longjmp

This function sets thread to the location obtained by its former l4_thread_setjump on env.

Parameters
threadthread to apply the longjmp to
envjump buffer
val0: setjmp returns with 1
val!0: return value of setjmp
See also
longjmp(3)
Note
In contrast to longjmp(3), this function returns.

◆ l4_thread_setjmp()

int l4_thread_setjmp ( l4_thread_jmp_buf  env)

inter-thread setjmp

Use this function to prepare a longjmp from another thread for this thread.

Parameters
envjump buffer
Return values
0returned directly
!0returned from longjmp
See also
setjmp(3)