mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
27 lines
923 B
C++
27 lines
923 B
C++
/*---------------------------------------------------------*\
|
|
| DeviceGuardLock.h |
|
|
| |
|
|
| Represents a lock for a device guard, ensuring |
|
|
| exclusive access to a device when acquired and |
|
|
| releasing it when destroyed |
|
|
| |
|
|
| Evan Mulawski 09 May 2023 |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-only |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "DeviceGuard.h"
|
|
|
|
class DeviceGuardLock
|
|
{
|
|
public:
|
|
DeviceGuardLock(DeviceGuard& guard_ref);
|
|
~DeviceGuardLock();
|
|
|
|
private:
|
|
DeviceGuard& guard;
|
|
};
|