class EventLoopEngine

Overview

EventLoop implementation which runs an EngineProtoWrapper. More…

#include <event_loop_engine.h>

class EventLoopEngine: public EventLoopInterface {
public:
    // construction

    EventLoopEngine(
        std::chrono::milliseconds timestep,
        std::chrono::milliseconds timestepThres,
        size_t storeCapacity,
        bool doProcessLast,
        const nlohmann::json& engineConfig,
        EngineProtoWrapper* engineWrapper
    );
};

Inherited Members

public:
    // methods

    virtual void initialize();
    void runLoopOnce(const std::chrono::time_point<std::chrono::steady_clock>& startTime);
    void runLoop(std::chrono::milliseconds timeout);

    void runLoopAsync(
        std::chrono::milliseconds timeout = std::chrono::milliseconds(0),
        bool doInit = false
    );

    void stopLoop();
    void shutdown();
    bool isRunning();
    void waitForLoopEnd();

Detailed Documentation

EventLoop implementation which runs an EngineProtoWrapper.

Construction

EventLoopEngine(
    std::chrono::milliseconds timestep,
    std::chrono::milliseconds timestepThres,
    size_t storeCapacity,
    bool doProcessLast,
    const nlohmann::json& engineConfig,
    EngineProtoWrapper* engineWrapper
)

Constructor.