File tree 2 files changed +0
-11
lines changed
security/sandbox/chromium/base/synchronization 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ LockImpl::LockImpl() : native_handle_(SRWLOCK_INIT) {}
13
13
14
14
LockImpl::~LockImpl () = default ;
15
15
16
- bool LockImpl::Try () { return !!::TryAcquireSRWLockExclusive (&native_handle_); }
17
-
18
16
void LockImpl::Lock () { ::AcquireSRWLockExclusive (&native_handle_); }
19
17
20
18
void LockImpl::Unlock () { ::ReleaseSRWLockExclusive (&native_handle_); }
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ LockImpl::LockImpl() : native_handle_(SRWLOCK_INIT) {}
15
15
16
16
LockImpl::~LockImpl () = default ;
17
17
18
- bool LockImpl::Try () {
19
- return !!::TryAcquireSRWLockExclusive (
20
- reinterpret_cast <PSRWLOCK>(&native_handle_));
21
- }
22
-
23
18
void LockImpl::Lock () {
24
19
// The ScopedLockAcquireActivity below is relatively expensive and so its
25
20
// actions can become significant due to the very large number of locks
@@ -28,10 +23,6 @@ void LockImpl::Lock() {
28
23
// (tracked) blocking call if that fails. Since "try" itself is a system
29
24
// call, and thus also somewhat expensive, don't bother with it unless
30
25
// tracking is actually enabled.
31
- if (base::debug::GlobalActivityTracker::IsEnabled ())
32
- if (Try ())
33
- return ;
34
-
35
26
base::debug::ScopedLockAcquireActivity lock_activity (this );
36
27
::AcquireSRWLockExclusive (reinterpret_cast <PSRWLOCK>(&native_handle_));
37
28
}
You can’t perform that action at this time.
0 commit comments