#ifndef LIBANGLE_CONTEXT_MUTEX_H_
#define LIBANGLE_CONTEXT_MUTEX_H_
#include <atomic>
#include "common/debug.h"
namespace gl
{
class Context;
}
namespace egl
{
#if defined(ANGLE_ENABLE_CONTEXT_MUTEX)
constexpr bool kIsContextMutexEnabled = true;
#else
constexpr bool kIsContextMutexEnabled = …;
#endif
ContextMutexType;
class ContextMutex final : angle::NonCopyable
{ … };
class [[nodiscard]] ScopedContextMutexAddRefLock final : angle::NonCopyable
{ … };
class [[nodiscard]] ScopedContextMutexLock final
{ … };
}
#endif