We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 971ad28 commit 99ed6fcCopy full SHA for 99ed6fc
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