#include <threaded_update_helper.h>
◆ ~ThreadedUIUpdate()
◆ Start()
Starts a threaded UI update with a given delay and timer update. The function starts the threaded execution immediately, after timerDelay a timer is started to update the ui with a progress update.
- Parameters
-
[in] | threadFn | Callback with the code which needs to be executed parallel. This is running in a new thread. |
[in] | timerDelay | The timer delay after which startWaitFn is triggered. |
[in] | waitFirstDelay | True if the function should wait until the first timerDelay is reached. This leads to a wait time in this function. False to do it completely async. A one-shot timer will be used to trigger the first timerDelay. This is the most efficient way. |
[in] | startWaitFn | Callback which will be triggered if the threadFn takes longer than timerDelay. This is running in the UI Queue. |
[in] | timerInterval | The timer interval that triggers an UI timer update while the thread is running. |
[in] | timerWaitFn | Timer callback to update the UI with progress informations. This is running in the UI Queue. |
[in] | finalUpdateFunc | Finalize callback to update the UI after all is done. This is running in the UI Queue. |
- Returns
- OK on success.
◆ Cancel()
Cancel the job.
- Returns
- True if it is still running, in this case a new object needs to be created! False if the thread is unused.
Implements ThreadedUIUpdateBase.
◆ Wait()
◆ IsRunning()
◆ CancelI()
◆ _scanThread
◆ _updateJob
◆ _spinningTimer
◆ _isDone