Closed wgtdkp closed 4 years ago
This PR adds a new API otSysMainloopBreak to break otSysMainloopPoll.
otSysMainloopBreak
otSysMainloopPoll
An example usage:
static void break_select(void *aContext) { while (true) { usleep(100 * 1000); ESP_LOGI(CLI_LOG_TAG, "breaking the OpenThread event loop"); otSysMainloopBreak(); } } void app_main() { xTaskCreate(break_select, "break_select", 5 * 1024, NULL, 4, NULL); xTaskCreate(run_cli, "cli", 10 * 1024, NULL, 5, NULL); }
This PR adds a new API
otSysMainloopBreak
to breakotSysMainloopPoll
.An example usage: