mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[idd] common: use CSRWLock throughout the drivers
Make CSRWLock own the native lock and provide scoped guards for shared, exclusive, early-unlock, and non-blocking use. Replace direct SRW lock management throughout the IDD, input driver, and helper while preserving the existing lock scopes.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CSRWLock.h"
|
||||
#include <Windows.h>
|
||||
#include <wdf.h>
|
||||
#include <IddCx.h>
|
||||
@@ -58,7 +59,7 @@ private:
|
||||
|
||||
// Guards the monitor/replug/swap-chain state. These values are touched by
|
||||
// IddCx callback threads, the swap-chain thread, and the transport timer.
|
||||
SRWLOCK m_lock = SRWLOCK_INIT;
|
||||
CSRWLock m_lock;
|
||||
|
||||
bool m_replugMonitor = false;
|
||||
bool m_replugPending = false;
|
||||
|
||||
Reference in New Issue
Block a user