Clock Class

Definition

Line 19 of cmsxm/Clock.cm

Constructors & Destructor

static Clock()
private Clock()

Member Functions

public static Clock& Instance()
public void Start()
public void Stop()
private void Tick()

Constants

public const long tick = 50

Member Variables

private static UniquePtr<Clock> instance
private Machine& machine
private RecursiveMutex mtx
private bool started
private ConditionVariable stop
private bool stopping
private Thread thread

Constructor& Destructor Details

Clock Static Constructor

static Clock()

Definition
Line 23 of cmsxm/Clock.cm


Clock Constructor

private Clock()

Definition
Line 30 of cmsxm/Clock.cm


Member Function Details

Instance Static Member Function

public static Clock& Instance()

Definition
Line 26 of cmsxm/Clock.cm


Start Member Function

public void Start()

Definition
Line 33 of cmsxm/Clock.cm


Stop Member Function

public void Stop()

Definition
Line 39 of cmsxm/Clock.cm


Tick Member Function

private void Tick()

Definition
Line 46 of cmsxm/Clock.cm