Description
Describe the bug
Trying to call display functions (ex display_write
) from a thread other than main
does not seem to work.
To Reproduce
Steps to reproduce the behavior:
- change
samples/drivers/display/src/main.c
so that the contents of main() is effectively executed in a different thread - build and run on native_sim --> screen is black
Expected behavior
SDL driver should work in a multithreaded environment, just like other display drivers.
Impact
can't run custom GUI code that requires a dedicated thread using native sim
Environment (please complete the following information):
Linux x86_64, 3.6.99 f419ea7