Search found 2 matches

by rajatmo
Wed Jan 04, 2023 6:54 pm
Forum: ESP-IDF
Topic: Watchdog triggered trying to implement threadpool (c++)
Replies: 1
Views: 998

Re: Watchdog triggered trying to implement threadpool (c++)

For anyone else in this situation: this problem was discussed in this thread : https://www.esp32.com/viewtopic.php?t=6649 . yield() is different here than in desktop OS. The modification that works for me uses condition_variable: #pragma once #include <atomic> #include <vector> #include <functional>...
by rajatmo
Tue Jan 03, 2023 9:26 pm
Forum: ESP-IDF
Topic: Watchdog triggered trying to implement threadpool (c++)
Replies: 1
Views: 998

Watchdog triggered trying to implement threadpool (c++)

I was trying to make a primitive threadpool for some applications following the lines of the book "Cplusplus Concurrency In Action Practical Multithreading". I am using c++ instead of c because that is what I am comfortable with. Even though this very same code ( with std::cout instead of ESP_LOGI()...