-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
struct Rav1dFrameContext_task_thread
: Make Rav1dTask lists indexed
Rav1dTasks are stored in two arrays and linked into a linked list by pointers. This change refactors the lists into a `Rav1dTasks` structure that links tasks by index instead of pointer. We still access the Rav1dTasks structure with unsafe interior mutability, because we would have borrowing errors between the Rav1dFrameData reference lifetime and the lifetime of borrows out of the Rav1dTasks structure. This will be fixed soon when we split `Rav1dFrameData` into an immutable, interiorly mutable portion and a mutex protected mutable portion.
- Loading branch information
Showing
3 changed files
with
323 additions
and
243 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
Oops, something went wrong.