ProtoThreads: Lightweight, Stackless Threads in C
the catch:<p>> Because protothreads do not save the stack context across a blocking call, local variables are not preserved when the protothread blocks. This means that local variables should be used with utmost care - if in doubt, do not use local variables inside a protothread!