Files
o3de/Code/Legacy/CryCommon/MainThreadRenderRequestBus.h
T
Esteban Papp 9f0bbf3b74 SPEC-7531 Change Code/CryEngine to Code/Legacy (#1634)
* git mv Code\CryEngine Code\Legacy
* redirecting CMakeLists.txt
* fixing uic warning
* Some more CryEngine mentions
* validation scripts

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-06-29 13:51:24 -07:00

32 lines
773 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Component/ComponentBus.h>
#include <AzCore/std/parallel/mutex.h>
namespace AZ
{
/**
* Used to queue render commands to be safely executed on the main thread
*/
class MainThreadRenderQueueEvents
: public AZ::EBusTraits
{
public:
virtual ~MainThreadRenderQueueEvents() {}
// EBusTraits overrides
static const AZ::EBusHandlerPolicy HandlerPolicy = EBusHandlerPolicy::Single;
static const bool EnableEventQueue = true;
typedef AZStd::mutex EventQueueMutexType;
};
using MainThreadRenderRequestBus = AZ::EBus<MainThreadRenderQueueEvents>;
}