diff options
author | 2020-07-25 14:44:54 +0200 | |
---|---|---|
committer | 2020-07-25 14:47:22 +0200 | |
commit | 2231bf8ae0ab6e752e394ad2c84d843d6a19d0f8 (patch) | |
tree | 252740e29ae17263d208cc896543ad3e5ce0f63f /src/lib/netlist/plib/pchrono.h | |
parent | 016c636bb38824031082b100e667596508822cdd (diff) |
netlist: Rewrote scheduler scheduling.
* All solver scheduling is now handled by nld_solver.
* Previously, for dynamic timestepping the sub solvers would be
responsible for their scheduling themselves.
- This prevented any attemps to use parallel execution of solvers.
* Now the route is free towards experiments to use parallel execution of
solvers.
* Uses ptimed_queue_linear in solver scheduling
* Improved netlist queue implementation (template now)
* Added const delegates.
* Added subsolver stats
* Removed dead code.
Diffstat (limited to 'src/lib/netlist/plib/pchrono.h')
-rw-r--r-- | src/lib/netlist/plib/pchrono.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pchrono.h b/src/lib/netlist/plib/pchrono.h index 4a5e77d9ca2..03edeeebe6f 100644 --- a/src/lib/netlist/plib/pchrono.h +++ b/src/lib/netlist/plib/pchrono.h @@ -217,6 +217,12 @@ namespace plib { / narrow_cast<S>(T::per_second()); } guard_t guard() noexcept { return guard_t(*this); } + + // pause must be followed by cont(inue) + void pause() noexcept { m_time += T::stop(); } + void cont() noexcept { m_time -= T::start(); } + + private: type m_time; ctype m_count; |