Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
steam::control::test::anonymous_namespace{session-command-function-test.cpp} Namespace Reference

Functions

void maybeOverride (uint &configSetting, Arg cmdline, uint paramNr)
 
void operate (Duration dur, Offset offset, int factor)
 
Time capture (Duration, Offset, int)
 
void undoIt (Duration, Offset, int, Time oldState)
 

Variables

uint NUM_THREADS_DEFAULT = 50
 
uint NUM_INVOC_PER_THRED = 10
 
uint MAX_RAND_DELAY_us = 50
 
const Symbol COMMAND_ID {"test.dispatch.function.command"}
 
const Symbol COMMAND_I1 {"test.dispatch.function.command.instance-1"}
 
const Symbol COMMAND_I2 {"test.dispatch.function.command.instance-2"}
 
TimeVar testCommandState = randTime()
 

Function Documentation

◆ maybeOverride()

void maybeOverride ( uint configSetting,
Arg  cmdline,
uint  paramNr 
)

Definition at line 128 of file session-command-function-test.cpp.

References maybeOverride().

Referenced by maybeOverride().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operate()

void operate ( Duration  dur,
Offset  offset,
int  factor 
)

Definition at line 144 of file session-command-function-test.cpp.

References testCommandState.

◆ capture()

Time capture ( Duration  ,
Offset  ,
int   
)

Definition at line 150 of file session-command-function-test.cpp.

References testCommandState.

◆ undoIt()

void undoIt ( Duration  ,
Offset  ,
int  ,
Time  oldState 
)

Definition at line 156 of file session-command-function-test.cpp.

References testCommandState.

Variable Documentation

◆ NUM_THREADS_DEFAULT

uint NUM_THREADS_DEFAULT = 50
Note
not const, can be overridden by command line argument

Definition at line 123 of file session-command-function-test.cpp.

◆ NUM_INVOC_PER_THRED

uint NUM_INVOC_PER_THRED = 10

Definition at line 124 of file session-command-function-test.cpp.

◆ MAX_RAND_DELAY_us

uint MAX_RAND_DELAY_us = 50
Warning
be sure to keep this way shorter than the delay in the main thread

Definition at line 125 of file session-command-function-test.cpp.

◆ COMMAND_ID

const Symbol COMMAND_ID {"test.dispatch.function.command"}

Definition at line 137 of file session-command-function-test.cpp.

◆ COMMAND_I1

const Symbol COMMAND_I1 {"test.dispatch.function.command.instance-1"}

Definition at line 138 of file session-command-function-test.cpp.

◆ COMMAND_I2

const Symbol COMMAND_I2 {"test.dispatch.function.command.instance-2"}

Definition at line 139 of file session-command-function-test.cpp.

◆ testCommandState

TimeVar testCommandState = randTime()

Definition at line 141 of file session-command-function-test.cpp.

Referenced by capture(), operate(), and undoIt().