Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
game_loop.h File Reference
#include <atomic>
#include <chrono>
#include <cstdint>
#include <nlohmann/json_fwd.hpp>
#include <vector>
#include "core/cyclic_task.h"
Include dependency graph for game_loop.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GameLoopHealth
 Snapshot of game-loop real-time health for the GET /api/game-loop diagnostic endpoint. All fields are read with relaxed ordering — for monitoring, not synchronisation. More...
 
class  GameLoop
 Fixed-period real-time loop. More...
 

Functions

void to_json (nlohmann::json &j, const GameLoopHealth &h)
 Serializes a GameLoopHealth to JSON (found via ADL by nlohmann::json).
 

Function Documentation

◆ to_json()

void to_json ( nlohmann::json &  j,
const GameLoopHealth h 
)

Serializes a GameLoopHealth to JSON (found via ADL by nlohmann::json).