Skip to content

5.0.0 - Improvements in atomic implementation

Choose a tag to compare

@davetcc davetcc released this 01 Oct 06:53
· 13 commits to main since this release

In 5.0.0 of taskmanager we now introduce major improvements in atomic support. Of note:

  • Always use std::atomic if it is available. Emulate the parts that are missing (when int is not always lock free).
  • To emulate that we have written specific ARM 0-3, RISKV, ESP8266, ESP32S2, and AVR. It should be fully atomic on nearly all boards
  • We have combined SimpleCollections into this library. This is because we were managing two atomic implmentations before, and we can't keep doing that.
  • Small improvements to the circular buffer
  • We've made initialisation explicit. TaskManager itself will initialise if not already done so, but for safety you should call the tcInitAtomics() yourself near the top of setup().
  • Arduino Zephyr core tested and known working. Needed a fix to detangle the mbed detection.