We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c8d1e commit 27f9603Copy full SHA for 27f9603
cores/esp8266/core_esp8266_main.cpp
@@ -185,6 +185,9 @@ extern "C" void __yield() {
185
186
extern "C" void yield(void) __attribute__ ((weak, alias("__yield")));
187
188
+// In CONT, actually performs yield() only once the given time interval
189
+// has elapsed since the last time yield() occured. Whereas yield() panics
190
+// in SYS, optimistic_yield() additionally is safe to call and does nothing.
191
extern "C" void optimistic_yield(uint32_t interval_us) {
192
const uint32_t intvl_cycles = interval_us *
193
#if defined(F_CPU)
0 commit comments