MicroThreads is a simple C hack to allow for the continuation of a function at an arbitrary point of its execution. The application of this construct is similar to cooperative threading, and in reality it is a toolkit for creating complex state machines without explicitly defining every state.

MicroThreads is inspired by Protothreads by Adam Dunkels


Source Code

Everything in a Zip: