lc-switch.h File Reference
Detailed Description
Implementation of local continuations based on switch() statment.
- Author:
- Adam Dunkels <adam@sics.se>
This implementation of local continuations uses the C switch() statement to resume execution of a function somewhere inside the function's body. The implementation is based on the fact that switch() statements are able to jump directly into the bodies of control structures such as if() or while() statmenets.
This implementation borrows heavily from Simon Tatham's coroutines implementation in C:
http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
|
Typedefs |
typedef unsigned short | lc_t |
| The local continuation type.
|
Generated on Thu Feb 24 11:39:16 2005 for The Protothreads Library 1.0 by
1.3.6