Skip to content

Commit

Permalink
platforms/atomic-kms: Synchronise access to CRTC configuration.
Browse files Browse the repository at this point in the history
*Almost* all of this is only accessed on a single thread, the compositor's
submission thread.

*Almost*.

Unfortunately, `configure` is generally called from the ServerAction loop,
which is a different thread to the composition thread. `ensure_crtc` can
also (transitively) be called from `configuration`, which also happens
off-composition-thread.

Wrap this ball of wax up in a `mir::Synchronised<>`, to ensure we're
not racy.

(This also affects `gbm-kms`, but to a much lesser extent)
  • Loading branch information
RAOF committed Oct 25, 2024
1 parent a816adb commit 75910a6
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 97 deletions.
Loading

0 comments on commit 75910a6

Please sign in to comment.