/* This software is licensed by the MIT License, see LICENSE file */ /* Copyright © 2024-2025 Gregory Lirent */ namespace WebmrAPI.Utils { public class ConcurrentObject { internal readonly object _lock = new object(); public void LockedSet(ref T dst, T value) { lock (_lock) dst = value; } public T LockedGet(ref T src) { lock (_lock) return src; } } }