3 ms·
That's not quite true -- Adam Dunkels' protothreads make very good use of Duff's Device. They enable you to write event-driven code in a more or less thread-sty
by benhoyt 17y ago
That's not quite true -- Adam Dunkels' protothreads make very good use of Duff's Device. They enable you to write event-driven code in a more or less thread-style way. That said, Mr Duff is kind of hidden inside the protothread macros -- one never actually has to make eye contact with him.
Original link: http://www.sics.se/~adam/pt/ http://www.sics.se/~adam/pt/
Protothreads in C++: http://blog.brush.co.nz/2008/07/protothreads/ http://blog.brush.co.nz/2008/07/protothreads/
Also, a lot of the "hidden" Python are fine, and to be used. Though I didn't know about ... (Ellipsis)