L4Re - L4 Runtime Environment
|
Inter-thread setjmp/longjmp. More...
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... | |
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
.
thread | thread to apply the longjmp to |
env | jump buffer |
val | 0: setjmp returns with 1 |
val | !0: return value of 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.
env | jump buffer |
0 | returned directly |
!0 | returned from longjmp |