Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/windowsReleaseTest
  • release/releaseTest
  • release/releaseWindowsTest
  • release/201910
  • release/qt/201910
  • release/windows-test/201910
  • release/201908
  • release/201906
  • release/201905
  • release/201904
  • release/201903
  • release/201902
  • release/201901
  • release/201812
  • 4.0.0
  • 2.2.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
30 results

libav_utils.h

  • Adrien Béraud's avatar
    fbdc6a19
    video receive thread: fix race condition on displayMatrix_ · fbdc6a19
    Adrien Béraud authored and Sébastien Blin's avatar Sébastien Blin committed
    Instances of std::shared_ptr are not thread-safe, even if the control block is.
    
    Since AVBufer already has a refcounting system, use a unique_ptr instead,
    and add a mutex to protect access during copy.
    
    In practice, the mutex should almost never block since it's locked for
    the minimum scope.
    
    Change-Id: I5122e76dadb5da6c3738f8dc711698744b52315b
    fbdc6a19
    History
    video receive thread: fix race condition on displayMatrix_
    Adrien Béraud authored and Sébastien Blin's avatar Sébastien Blin committed
    Instances of std::shared_ptr are not thread-safe, even if the control block is.
    
    Since AVBufer already has a refcounting system, use a unique_ptr instead,
    and add a mutex to protect access during copy.
    
    In practice, the mutex should almost never block since it's locked for
    the minimum scope.
    
    Change-Id: I5122e76dadb5da6c3738f8dc711698744b52315b
Code owners
Assign users and groups as approvers for specific file changes. Learn more.