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

Description

Test:
verify encapsulated control logic of SteamDispatcher.
  • fusing of conditions for the pthread waiting condition
  • detection and handling of work states
  • management of builder run triggers
See also
steam::control::Looper
DispatcherLoop
CommandQueue_test

Definition at line 104 of file dispatcher-looper-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void verifyBasics ()
 
void verifyBuilderStart ()
 
void verifyDisabling_stops_processing ()
 
void verifyShutdown ()
 
void verifyShutdown_stops_processing ()
 
void verifyWakeupActivity ()
 

Member Function Documentation

◆ verifyBuilderStart()

void verifyBuilderStart ( )
inlineprivate
Test:
logic to trigger the builder over a complete simulated lifecycle.
  • when Looper::requireAction is true, the thread does not go into wait state
  • in the loop body
    • either when runBuild() is true, the builder run is triggered
    • or when isWorking() is true, the next command is processed
  • after that, Looper::markStateProcessed proceeds the state machine
    Note
    this test actually has to sleep in order to verify triggering a timeout

Definition at line 334 of file dispatcher-looper-test.cpp.

References Looper::markStateProcessed(), Looper::requireAction(), vault::gear::test::anonymous_namespace{work-force-test.cpp}::setup(), and Looper::shallLoop().

+ Here is the call graph for this function:
+ Inheritance diagram for DispatcherLooper_test:
+ Collaboration diagram for DispatcherLooper_test:

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