#pragma once class Activity; // forward declaration // RAII helper to lock rendering mutex for the duration of a scope. class RenderLock { bool isLocked = false; public: explicit RenderLock(); explicit RenderLock(Activity&); // unused for now, but keep for compatibility RenderLock(const RenderLock&) = delete; RenderLock& operator=(const RenderLock&) = delete; ~RenderLock(); void unlock(); static bool peek(); };