wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SimulationThrottleDisabler.cpp
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
5
6#include "App/Core/Common.h"
8
10 : m_simulation(simulation)
11{
12 qCDebug(zero) << "Disabling visual throttle.";
13 m_simulation->setVisualThrottleEnabled(false);
14}
15
17{
18 qCDebug(zero) << "Re-enabling visual throttle.";
19 m_simulation->setVisualThrottleEnabled(true);
20}
Common logging utilities, the Pandaception error type, and helper macros.
#define qCDebug(category)
Definition Common.h:29
RAII guard that disables the visual refresh throttle while in scope.
Synchronous cycle-based simulation engine with event-driven clock support.
SimulationThrottleDisabler(Simulation *simulation)
Disables the visual refresh throttle on simulation.
~SimulationThrottleDisabler()
Re-enables the visual refresh throttle.
Manages the digital circuit simulation loop.
Definition Simulation.h:38