Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

+24 -24
View File
@@ -1,24 +1,24 @@
/*---------------------------------------------------------*\
| DeviceGuard.cpp |
| |
| An abstract interface for acquiring and releasing |
| a guard on a device, serving as a foundation for |
| implementing device-specific synchronization mechanisms |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "DeviceGuard.h"
DeviceGuard::DeviceGuard()
{
}
DeviceGuard::~DeviceGuard()
{
}
/*---------------------------------------------------------*\
| DeviceGuard.cpp |
| |
| An abstract interface for acquiring and releasing |
| a guard on a device, serving as a foundation for |
| implementing device-specific synchronization mechanisms |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "DeviceGuard.h"
DeviceGuard::DeviceGuard()
{
}
DeviceGuard::~DeviceGuard()
{
}
+24 -24
View File
@@ -1,24 +1,24 @@
/*---------------------------------------------------------*\
| DeviceGuard.h |
| |
| An abstract interface for acquiring and releasing |
| a guard on a device, serving as a foundation for |
| implementing device-specific synchronization mechanisms |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
class DeviceGuard
{
public:
DeviceGuard();
virtual ~DeviceGuard();
virtual void Acquire() = 0;
virtual void Release() = 0;
};
/*---------------------------------------------------------*\
| DeviceGuard.h |
| |
| An abstract interface for acquiring and releasing |
| a guard on a device, serving as a foundation for |
| implementing device-specific synchronization mechanisms |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
class DeviceGuard
{
public:
DeviceGuard();
virtual ~DeviceGuard();
virtual void Acquire() = 0;
virtual void Release() = 0;
};
+24 -24
View File
@@ -1,24 +1,24 @@
/*---------------------------------------------------------*\
| DeviceGuardLock.cpp |
| |
| 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-or-later |
\*---------------------------------------------------------*/
#include "DeviceGuardLock.h"
DeviceGuardLock::DeviceGuardLock(DeviceGuard& guard_ref) : guard(guard_ref)
{
guard.Acquire();
}
DeviceGuardLock::~DeviceGuardLock()
{
guard.Release();
}
/*---------------------------------------------------------*\
| DeviceGuardLock.cpp |
| |
| 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-or-later |
\*---------------------------------------------------------*/
#include "DeviceGuardLock.h"
DeviceGuardLock::DeviceGuardLock(DeviceGuard& guard_ref) : guard(guard_ref)
{
guard.Acquire();
}
DeviceGuardLock::~DeviceGuardLock()
{
guard.Release();
}
+26 -26
View File
@@ -1,26 +1,26 @@
/*---------------------------------------------------------*\
| 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-or-later |
\*---------------------------------------------------------*/
#pragma once
#include "DeviceGuard.h"
class DeviceGuardLock
{
public:
DeviceGuardLock(DeviceGuard& guard_ref);
~DeviceGuardLock();
private:
DeviceGuard& guard;
};
/*---------------------------------------------------------*\
| 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-or-later |
\*---------------------------------------------------------*/
#pragma once
#include "DeviceGuard.h"
class DeviceGuardLock
{
public:
DeviceGuardLock(DeviceGuard& guard_ref);
~DeviceGuardLock();
private:
DeviceGuard& guard;
};
+29 -29
View File
@@ -1,29 +1,29 @@
/*---------------------------------------------------------*\
| DeviceGuardManager.cpp |
| |
| Responsible for managing a DeviceGuard implementation, |
| allowing clients to wait for exclusive access to a |
| device using the DeviceGuardLock it provides |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "DeviceGuardManager.h"
DeviceGuardManager::DeviceGuardManager(DeviceGuard* guard_ptr) : guard(guard_ptr)
{
}
DeviceGuardManager::~DeviceGuardManager()
{
delete guard;
}
DeviceGuardLock DeviceGuardManager::AwaitExclusiveAccess()
{
return DeviceGuardLock(*guard);
}
/*---------------------------------------------------------*\
| DeviceGuardManager.cpp |
| |
| Responsible for managing a DeviceGuard implementation, |
| allowing clients to wait for exclusive access to a |
| device using the DeviceGuardLock it provides |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "DeviceGuardManager.h"
DeviceGuardManager::DeviceGuardManager(DeviceGuard* guard_ptr) : guard(guard_ptr)
{
}
DeviceGuardManager::~DeviceGuardManager()
{
delete guard;
}
DeviceGuardLock DeviceGuardManager::AwaitExclusiveAccess()
{
return DeviceGuardLock(*guard);
}
+28 -28
View File
@@ -1,28 +1,28 @@
/*---------------------------------------------------------*\
| DeviceGuardManager.h |
| |
| Responsible for managing a DeviceGuard implementation, |
| allowing clients to wait for exclusive access to a |
| device using the DeviceGuardLock it provides |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include "DeviceGuardLock.h"
class DeviceGuardManager
{
public:
DeviceGuardManager(DeviceGuard* guard_ptr);
~DeviceGuardManager();
DeviceGuardLock AwaitExclusiveAccess();
private:
DeviceGuard* guard;
};
/*---------------------------------------------------------*\
| DeviceGuardManager.h |
| |
| Responsible for managing a DeviceGuard implementation, |
| allowing clients to wait for exclusive access to a |
| device using the DeviceGuardLock it provides |
| |
| Evan Mulawski 09 May 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include "DeviceGuardLock.h"
class DeviceGuardManager
{
public:
DeviceGuardManager(DeviceGuard* guard_ptr);
~DeviceGuardManager();
DeviceGuardLock AwaitExclusiveAccess();
private:
DeviceGuard* guard;
};