Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Eventloop in main thread to master #6186
This has the same content as ARMmbed/mbed-os-confidential-m#7 and #5752, just the target repo and branch are different.
Copypasta from commit:
Note: the ns_hal_init must be ran from the same thread which will be
By removing the separate event loop thread, one saves about 6KB of RAM in mbed cloud client example side.
Unless one sets the "nanostack-hal.event-loop-dispatch-from-application" to true, the existing behavior is not changed.
Steps to test or reproduce
Testing can be done by adding following code to the end of main(), where one has already initialized the event loop and the application code:
Build number : 1256
Build number : 920