Namespace for all functionality of the ADTF UI SDK provided since v3.11.
More...
|
void | 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. More...
|
|
tResult | 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. More...
|
|
Namespace for all functionality of the ADTF UI SDK provided since v3.11.
◆ 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] | fnFunction | The function that should be executed. |
[in] | tmTimeout | A timeout, 0 => no timeout. |
- Return values
-
ERR_TIMEOUT | The function has not been executed within the specified timeout. |
tResult | The 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] | fnFunction | The function that should be executed. |