Skip to content

drivers: display: sdl: Ensure task thread is run once on init #88886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

faxe1008
Copy link
Collaborator

Adds a yield after creating the display thread to ensure that the thread is run once, executing the SDL init.

Resolves #88818

@github-actions github-actions bot added area: Display size: XS A PR changing only a single line of code labels Apr 22, 2025
@JarmouniA JarmouniA added the area: native port Host native arch port (native_sim) label Apr 22, 2025
@faxe1008 faxe1008 force-pushed the fix-sdl-display-threading branch 2 times, most recently from e5f5630 to 5e1318d Compare April 23, 2025 12:11
Adds taking of the task semaphore after creating the display thread
to ensure that the thread is run once, executing the SDL init.
Adjust the threads priority to match the main thread.

Signed-off-by: Fabian Blatz <[email protected]>
@faxe1008 faxe1008 force-pushed the fix-sdl-display-threading branch from 5e1318d to df2909c Compare April 23, 2025 12:24
@pdgendt pdgendt changed the title drivers: display: sdl: Yield after creating task thread drivers: display: sdl: Ensure task thread is run once on init Apr 23, 2025
@Finomnis
Copy link
Contributor

Finomnis commented Apr 23, 2025

Looks good to me, if that fixes #88818

@JarmouniA JarmouniA removed the size: XS A PR changing only a single line of code label Apr 23, 2025
@VynDragon VynDragon assigned VynDragon and unassigned VynDragon Apr 25, 2025
@kartben kartben merged commit 8009614 into zephyrproject-rtos:main Apr 25, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Display area: native port Host native arch port (native_sim)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

display: Writing too fast to SDL display with native_sim causes display to stay blank forever
6 participants