forked from Helvethor/rust-rpi-rgb-led-matrix
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since led_matrix_swap_on_vsync() will block until the next vsync, implementing the Send + Sync traits for LedCanvas will allow the canvas to be sent between a render thread and a draw thread. Since the underlying canvas is created with CreateFrameCanvas(), which allocates the canvas memory on the heap, it is safe to share between threads.
- Loading branch information
1 parent
663c32f
commit f8e156a
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters