omni/kit/IRunLoopRunner.h
File members: omni/kit/IRunLoopRunner.h
// Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once
#include "../../carb/IObject.h"
#include "../../carb/Interface.h"
namespace omni
{
namespace kit
{
class RunLoop;
class IRunLoopRunner : public carb::IObject
{
public:
virtual void startup() = 0;
virtual void onAddRunLoop(const char* name, RunLoop* loop) = 0;
virtual void onRemoveRunLoop(const char* name, RunLoop* loop, bool block) = 0;
virtual void update() = 0;
virtual void shutdown() = 0;
};
using IRunLoopRunnerPtr = carb::ObjectPtr<IRunLoopRunner>;
} // namespace kit
} // namespace omni