IRunLoopRunner.h#

Fully qualified name: omni/kit/IRunLoopRunner.h

File members: omni/kit/IRunLoopRunner.h

// SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
//
// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
// property and proprietary rights in and to this material, related
// documentation and any modifications thereto. Any use, reproduction,
// disclosure or distribution of this material and related documentation
// without an express license agreement from NVIDIA CORPORATION or
// its affiliates 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