powerd++  0.4.4
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{libloadplay.cpp}::Main Class Reference

Singleton class representing the main execution environment. More...

Collaboration diagram for anonymous_namespace{libloadplay.cpp}::Main:
[legend]

Public Member Functions

 Main ()
 The constructor starts up the emulation. More...
 
 ~Main ()
 Clean up the background emulation thread.
 

Private Attributes

std::thread bgthread
 The background emulation thread.
 
ifile< io::own > fin
 The optional input file.
 
ofile< io::own > fout
 The optional output file.
 
bool die {false}
 Used to request premature death from the emulation thread.
 

Detailed Description

Singleton class representing the main execution environment.

Constructor & Destructor Documentation

◆ Main()

anonymous_namespace{libloadplay.cpp}::Main::Main ( )
inline

The constructor starts up the emulation.

  • Read the headers from input and populate sysctls
  • Ensure the existence of all required sysctls
  • Spawn an Emulator instance in its own thread

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