forked from intel/media-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Decode] Prevent mt read/write conflict
Two concurrent DdiMedia_SyncSurface function calls read and write the same data when the second frame uses the first frame as a reference frame. Enqueue frames order: Frame #0 Frame intel#1 (uses #0 as a reference) Threads release order: Thread intel#1 (waits for Frame intel#1) Thread #0 (waits for Frame #0) Resolution is lock with the mutex the problem source code (read and update StatusReport), so only one thread writes the data, the second thread is waiting.
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 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