Skip to content

SDL display driver doesn't support API calls from a thread other than main #71410

Closed
@kartben

Description

@kartben

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:

  1. change samples/drivers/display/src/main.c so that the contents of main() is effectively executed in a different thread
  2. 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

Metadata

Metadata

Labels

area: Displayarea: native portHost native arch port (native_sim)bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions