mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Add wait loop at the end of mode, refactor can_yield (#6721)
* Add wait loop at the end of mode, refactor can_yield * fix mock build
This commit is contained in:
@ -37,6 +37,11 @@ extern "C" void yield()
|
||||
{
|
||||
}
|
||||
|
||||
extern "C" bool can_yield()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
extern "C" void optimistic_yield (uint32_t interval_us)
|
||||
{
|
||||
usleep(interval_us);
|
||||
@ -69,3 +74,4 @@ cont_t* g_pcont = NULL;
|
||||
extern "C" void cont_yield(cont_t*)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user