You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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 thelc-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
The text was updated successfully, but these errors were encountered: