MBDyn-1.7.3
|
#include <rtsolver.h>
Public Types | |
enum | RTMode { MBRT_UNKNOWN = -1, MBRT_WAITPERIOD, MBRT_SEMAPHORE, MBRT_IO, MBRT_LASTMODE } |
Public Member Functions | |
RTSolverBase (Solver *pS, RTMode eRTMode, unsigned long lRTPeriod, unsigned long RTStackSize, bool bRTAllowNonRoot, int RTCpuMap, bool bNoOutput=true) | |
virtual | ~RTSolverBase (void) |
virtual std::ostream & | Restart (std::ostream &out) const =0 |
virtual void | Setup (void)=0 |
virtual void | Init (void) |
virtual bool | IsStopCommanded (void) |
virtual void | StopCommanded (void)=0 |
virtual void | Log (void)=0 |
virtual void | Wait (void)=0 |
Protected Member Functions | |
bool | RTWaitPeriod (void) const |
bool | RTSemWait (void) const |
bool | RTBlockingIO (void) const |
Protected Attributes | |
Solver * | pS |
RTMode | eRTMode |
unsigned long | lRTPeriod |
unsigned long | RTStackSize |
bool | bRTAllowNonRoot |
int | RTCpuMap |
bool | bNoOutput |
volatile int | RTSteps |
Definition at line 39 of file rtsolver.h.
enum RTSolverBase::RTMode |
Enumerator | |
---|---|
MBRT_UNKNOWN | |
MBRT_WAITPERIOD | |
MBRT_SEMAPHORE | |
MBRT_IO | |
MBRT_LASTMODE |
Definition at line 41 of file rtsolver.h.
RTSolverBase::RTSolverBase | ( | Solver * | pS, |
RTMode | eRTMode, | ||
unsigned long | lRTPeriod, | ||
unsigned long | RTStackSize, | ||
bool | bRTAllowNonRoot, | ||
int | RTCpuMap, | ||
bool | bNoOutput = true |
||
) |
|
virtual |
Definition at line 63 of file rtsolver.cc.
References NO_OP.
|
virtual |
Reimplemented in RTAISolver.
Definition at line 69 of file rtsolver.cc.
References bNoOutput, mbdyn_reserve_stack(), pS, RTStackSize, and SolverDiagnostics::SetNoOutput().
Referenced by RTAISolver::Init(), InverseSolver::Prepare(), and Solver::Start().
|
virtual |
Reimplemented in RTAISolver.
Definition at line 81 of file rtsolver.cc.
Referenced by InverseSolver::Advance(), and Solver::Advance().
|
pure virtual |
Implemented in RTAISolver.
Referenced by InverseSolver::Advance(), and Solver::Advance().
|
pure virtual |
Implemented in RTAISolver.
|
inlineprotected |
Definition at line 73 of file rtsolver.h.
References eRTMode, and MBRT_IO.
|
inlineprotected |
Definition at line 69 of file rtsolver.h.
References eRTMode, and MBRT_SEMAPHORE.
Referenced by RTAISolver::Init(), and RTAISolver::Wait().
|
inlineprotected |
Definition at line 65 of file rtsolver.h.
References eRTMode, and MBRT_WAITPERIOD.
Referenced by RTAISolver::Init(), and RTAISolver::Wait().
|
pure virtual |
Implemented in RTAISolver.
Referenced by InverseSolver::Prepare(), and Solver::Prepare().
|
pure virtual |
Implemented in RTAISolver.
Referenced by InverseSolver::Advance(), and Solver::Advance().
|
pure virtual |
Implemented in RTAISolver.
Referenced by InverseSolver::Advance(), and Solver::Advance().
|
protected |
Definition at line 63 of file rtsolver.h.
Referenced by Init().
|
protected |
Definition at line 60 of file rtsolver.h.
Referenced by RTAISolver::Init(), RTAISolver::Restart(), and RTAISolver::Setup().
|
protected |
Definition at line 54 of file rtsolver.h.
Referenced by RTAISolver::Restart(), RTBlockingIO(), RTSemWait(), and RTWaitPeriod().
|
protected |
Definition at line 57 of file rtsolver.h.
|
protected |
Definition at line 52 of file rtsolver.h.
Referenced by Init().
|
protected |
Definition at line 61 of file rtsolver.h.
Referenced by RTAISolver::Init(), RTAISolver::Restart(), and RTAISolver::Setup().
|
protected |
Definition at line 59 of file rtsolver.h.
Referenced by Init(), and RTAISolver::Restart().
|
protected |
Definition at line 75 of file rtsolver.h.
Referenced by RTAISolver::Wait().