// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. #include "SRWExclusiveLock.h" SRWExclusiveLock::SRWExclusiveLock(const SRWLOCK& lock) noexcept : m_lock(lock) { AcquireSRWLockExclusive(const_cast(&m_lock)); } SRWExclusiveLock::~SRWExclusiveLock() { ReleaseSRWLockExclusive(const_cast(&m_lock)); }