Replies: 1 comment
-
I am using std::thread (and pthread) for ESP32-Arduino and for Raspberry Pi (and others) successfully over all since decades for dozens of projects as stated and described here: arduino/language#2 (comment). A practical example for preemptive MT which is non-blocking although some working functions may hold on calculating continuously for long times without releasing by delay or sleep (e.g., Fibonacci calculatings) and about how MT is implemented by ESP32 std::thread see this one (one may make Serial.print() even clean non-overlapping by using std::mutex if one wishes) - I would expect kind of this also for Arduino_Threads:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions