Lumiera  0.pre.03
»edit your freedom«
SessionSubsystem Class Reference

Description

Definition at line 55 of file facade.cpp.

Private Member Functions

bool checkRunningState () noexcept override
 whether this subsystem is actually operational. More...
 
 operator string () const
 a human readable name
 
bool shouldStart (Option &) override
 
bool start (Option &, Subsys::SigTerm termNotification) override
 attempt to bring up this subsystem up. More...
 
void triggerShutdown () noexcept override
 initiate termination of this subsystem. More...
 

Additional Inherited Members

- Public Types inherited from Subsys
typedef function< void(string *)> SigTerm
 
- Public Member Functions inherited from Subsys
Subsysdepends (Subsys &prereq)
 define a dependency to another Subsys required for running this subsystem
 
const std::vector< Subsys * > getPrerequisites ()
 
bool isRunning () noexcept
 

Member Function Documentation

◆ shouldStart()

bool shouldStart ( Option )
inlineoverrideprivatevirtual
Remarks
there is no need explicitly to start the session, since it is passive, waiting for invocations and will be pulled up as prerequisite of other subsystems.

Implements Subsys.

Definition at line 64 of file facade.cpp.

◆ start()

bool start ( Option options,
Subsys::SigTerm   
)
inlineoverrideprivatevirtual

attempt to bring up this subsystem up.

On return, the subsystem must be operational, according to checkRunningState(). Failure to start up usually terminates the whole application. When this subsystem ceases to work, it must ensure to activate the given callback signal.

Parameters
optionsmay be influencing the operation mode
SigTermto be signalled by the subsystem.
Warning
termination must be signalled reliably.
Returns
true if actually started.

Implements Subsys.

Definition at line 70 of file facade.cpp.

References SteamDispatcher::instance.

◆ triggerShutdown()

void triggerShutdown ( )
inlineoverrideprivatevirtualnoexcept

initiate termination of this subsystem.

This trigger may be called repeatedly any time... When the subsystem actually has terminated, the SigTerm passed to start must be invoked.

Note
called within a locked context (barrier)
Warning
must not block nor throw.

Implements Subsys.

Definition at line 76 of file facade.cpp.

References SteamDispatcher::instance.

◆ checkRunningState()

bool checkRunningState ( )
inlineoverrideprivatevirtualnoexcept

whether this subsystem is actually operational.

When returning false here, the application may terminate at any point without further notice Note further, that a subsystem must not be in running state when signalling termination.

Implements Subsys.

Definition at line 82 of file facade.cpp.

References SteamDispatcher::instance.

+ Inheritance diagram for SessionSubsystem:
+ Collaboration diagram for SessionSubsystem:

The documentation for this class was generated from the following file: