mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 07:01:30 +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:
@@ -24,13 +24,14 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "CPipeEndpoint.h"
|
||||
#include "CSRWLock.h"
|
||||
#include "PipeMsg.h"
|
||||
|
||||
class CPipeClient : private IPipeEndpointHandler
|
||||
{
|
||||
private:
|
||||
CPipeEndpoint m_endpoint;
|
||||
SRWLOCK m_displayLock = SRWLOCK_INIT;
|
||||
CSRWLock m_displayLock;
|
||||
|
||||
void WriteMsg(const LGPipeMsg& msg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user