-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start synchronizing with a File lock
First stab at hunting a few race conditions, I've put together some examples that try to expose race conditions but I've only found a scenario on `scheduleFrame()` for now. In any case, I've resorted to using a `ReentrantLock` on a `File` object, since everything originates from there, and trying to gate the most probable sources of resource contention, including `disposeDependencies()` on the `RiveArtboardRenderer`. I still need to take a look at the input queue. And, I'd like to remove some of the old `RiveArtboardRenderer` APIs that have been moved to the `RiveFileController`, some of which are already deprecated With this considerations, I'm pretty sure this will need a major bump. Diffs= c4a8015a8 `synchronize{}` with a ReentrantLock (#6170) Co-authored-by: Umberto Sonnino <[email protected]>
- Loading branch information
1 parent
50edba6
commit 7678d57
Showing
16 changed files
with
189 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
552801b54309992b18437e17ce7303ff11ac5fb8 | ||
c4a8015a888d3b623951ee169087369bebd8fcea |
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
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
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.