-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Description
Hi,
I've updated the protothreads 1.4 library that is currently used in contiki-os to protothreads library 2.0.
I have looked into the code of contiki-os and see no direct problems using this for contiki-os but leverages a view possible advantages:
- more control flow constructs like try catch finally, without the overhead.
- better handling of yielding functions.
- error handling by state with additional overhead.
I haven't been able to spot any problems for contiki-os using protothreads v2 as long it uses the lc-switch.h duff-device construct and NOT the lc-addrlabels.h construct. This is btw, prone to errors on the long run anyway.
You can find the protothreads v2 library as a module in the protoduino framework at:
https://github.com/jklarenbeek/protoduino
I was wondering what you would think about this change.
Regards,
Joham
Metadata
Metadata
Assignees
Labels
No labels