{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1385","repository_url":"https://api.github.com/repos/espressif/arduino-esp32","labels_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1385/labels{/name}","comments_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1385/comments","events_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1385/events","html_url":"https://github.com/espressif/arduino-esp32/issues/1385","id":320551965,"number":1385,"title":"state of yield()","user":{"login":"trycoon","id":3145330,"avatar_url":"https://avatars3.githubusercontent.com/u/3145330?v=4","gravatar_id":"","url":"https://api.github.com/users/trycoon","html_url":"https://github.com/trycoon","followers_url":"https://api.github.com/users/trycoon/followers","following_url":"https://api.github.com/users/trycoon/following{/other_user}","gists_url":"https://api.github.com/users/trycoon/gists{/gist_id}","starred_url":"https://api.github.com/users/trycoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trycoon/subscriptions","organizations_url":"https://api.github.com/users/trycoon/orgs","repos_url":"https://api.github.com/users/trycoon/repos","events_url":"https://api.github.com/users/trycoon/events{/privacy}","received_events_url":"https://api.github.com/users/trycoon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-06T00:28:38Z","updated_at":"2018-05-12T00:00:50Z","closed_at":"2018-05-11T13:14:39Z","author_association":"NONE","body":"### Hardware:\r\nBoard:\t\t\t\t\t\t\tNodeMCU ESP32\r\nCore Installation/update date:\t\t\txxxx\r\nIDE name:\t\t\t\t\t\tPlatform.io\r\nFlash Frequency:\t\t\t\t\txxxx\r\nUpload Speed:\t\t\t\t\txxxx\r\n\r\nHi!\r\nWhen I started to develop on a Arduino everything was singlethreaded, and I was in full control of the CPU-cycles (as far as I know). Then I moved up to the ESP8266, with more of everything, including WiFi. The ESP8266 was still singlethreaded and I was required to call upon the yield()-function when doing heavy computations to allow the system to do some housekeeping (including keeping the WiFi connection going). Failing to call upon yeild() or sleep() in a long running loop() would result in a unstable system and flaky WiFi.\r\n\r\nI'm now moving on to the ESP32 platform and my question is if I'm still required to call upon yield() when doing long running computations? Since the ESP32 platform is running a real OS (FreeRTOS) with multithread support on a dual core CPU, maybe all timecritical houskepping is already built into the system using some kind of maintenance thread?\r\n\r\nThanks for any clarification, and keep up the good work!\r\n// Henrik"},"comment":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/comments/388513549","html_url":"https://github.com/espressif/arduino-esp32/issues/1385#issuecomment-388513549","issue_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1385","id":388513549,"user":{"login":"trycoon","id":3145330,"avatar_url":"https://avatars3.githubusercontent.com/u/3145330?v=4","gravatar_id":"","url":"https://api.github.com/users/trycoon","html_url":"https://github.com/trycoon","followers_url":"https://api.github.com/users/trycoon/followers","following_url":"https://api.github.com/users/trycoon/following{/other_user}","gists_url":"https://api.github.com/users/trycoon/gists{/gist_id}","starred_url":"https://api.github.com/users/trycoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trycoon/subscriptions","organizations_url":"https://api.github.com/users/trycoon/orgs","repos_url":"https://api.github.com/users/trycoon/repos","events_url":"https://api.github.com/users/trycoon/events{/privacy}","received_events_url":"https://api.github.com/users/trycoon/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T00:00:50Z","updated_at":"2018-05-12T00:00:50Z","author_association":"NONE","body":"Thanks @pipi61, that was good news. I can finally remove all bloated \"yields\" from my code."}}
{"actor":{"display_login":"trycoon"}}