Protothreads and C++
Ben Hoyt has implemented Protothreads as a C++ class that is easy to use. He has a written a piece on protothreads in C++. From the post: “What protothreads give you is the ability to write procedural, thread-style code, but without the overhead of real threads. The kind of thing embedded programmers normally use switch state machines for.” Take a look at the examples of Protothreads in C++ here.


