Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Arch Class Reference

Delegating implementation of architecture dependent interfaces. More...

#include <Arch.h>

Inheritance diagram for Arch:
Collaboration diagram for Arch:

Public Member Functions

 Arch ()
 ~Arch () override=default

Static Public Member Functions

static ArchgetInstance ()
 Return the singleton instance.
static void sleep (double timeout)
 blocks calling thread for timout seconds
static double time ()
 time

Detailed Description

Delegating implementation of architecture dependent interfaces.

This class is a centralized interface to all architecture dependent interface implementations (except miscellaneous functions). It instantiates an implementation of each interface and delegates calls to each method to those implementations. Clients should use the ARCH macro to access this object. Clients must also instantiate exactly one of these objects before attempting to call any method, typically at the beginning of main().

Constructor & Destructor Documentation

◆ Arch()

Arch::Arch ( )

◆ ~Arch()

Arch::~Arch ( )
overridedefault

Member Function Documentation

◆ getInstance()

Arch * Arch::getInstance ( )
static

Return the singleton instance.

The client must have instantiated exactly once Arch object before calling this function.

◆ sleep()

void Arch::sleep ( double timeout)
static

blocks calling thread for timout seconds

Parameters
timeout- blocking time in seconds. if < 0 not blocked if == 0 then caller yields the CPU

◆ time()

double Arch::time ( )
static

time

Returns
Returns the number of seconds since some arbitrary starting time. This should return as high a precision as reasonable.

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