ADTF Qt5
Loading...
Searching...
No Matches
adtf::ui::testing::lucky Namespace Reference

Legacy version namespace for all functionality taken over from ADTF v3.11. More...

Functions

void schedule_in_gui_thread (std::function< void()> fnFunction)
 
tResult execute_in_gui_thread (std::function< tResult()> fnFunction, std::chrono::milliseconds tmTimeout=std::chrono::milliseconds{0})
 

Detailed Description

Legacy version namespace for all functionality taken over from ADTF v3.11.

Function Documentation

◆ execute_in_gui_thread()

tResult adtf::ui::testing::lucky::execute_in_gui_thread ( std::function< tResult()> fnFunction,
std::chrono::milliseconds tmTimeout = std::chrono::milliseconds{0} )

Execute the given function from within the GUI thread and wait until it has finished.

Parameters
[in]fnFunctionThe function that should be executed.
[in]tmTimeoutA timeout, 0 => no timeout.
Return values
ERR_TIMEOUTThe function has not been executed within the specified timeout.
tResultThe return value of the function.

◆ schedule_in_gui_thread()

void adtf::ui::testing::lucky::schedule_in_gui_thread ( std::function< void()> fnFunction)

Schedules the given function to be executed from within the GUI thread some time in the future.

Parameters
[in]fnFunctionThe function that should be executed.