Revert "Migrate modules/desktop_capture and modules/video_capture to webrtc::Mutex."
This reverts commit 44dd3d743517fe85212ba4f68bda1e78c2e6d7ec. Reason for revert: crbug.com/1104081 Original change's description: > Migrate modules/desktop_capture and modules/video_capture to webrtc::Mutex. > > Bug: webrtc:11567 > Change-Id: I7bfca17f91bf44151148f863480ce77804d53a04 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178805 > Commit-Queue: Markus Handell <handellm@webrtc.org> > Reviewed-by: Tommi <tommi@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#31681} TBR=tommi@webrtc.org,handellm@webrtc.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: webrtc:11567 Change-Id: I4ee39947ba206522bce611341caef84ddb538068 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179080 Reviewed-by: Markus Handell <handellm@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31702}
This commit is contained in:
committed by
Commit Bot
parent
0800010dd6
commit
1added5666
@ -25,7 +25,7 @@
|
||||
#include "modules/desktop_capture/win/dxgi_adapter_duplicator.h"
|
||||
#include "modules/desktop_capture/win/dxgi_context.h"
|
||||
#include "modules/desktop_capture/win/dxgi_frame.h"
|
||||
#include "rtc_base/synchronization/mutex.h"
|
||||
#include "rtc_base/critical_section.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -219,7 +219,7 @@ class DxgiDuplicatorController {
|
||||
std::atomic_int refcount_;
|
||||
|
||||
// This lock must be locked whenever accessing any of the following objects.
|
||||
Mutex lock_;
|
||||
rtc::CriticalSection lock_;
|
||||
|
||||
// A self-incremented integer to compare with the one in Context. It ensures
|
||||
// a Context instance is always initialized after DxgiDuplicatorController.
|
||||
|
||||
Reference in New Issue
Block a user