Execution abstraction and build fix for linux and mac

This commit is contained in:
tamasmeszaros 2018-06-27 18:23:53 +02:00
parent d337b69407
commit 8497289650
4 changed files with 26 additions and 2 deletions

View file

@ -131,6 +131,22 @@ public:
*/
bool is_main_thread() const;
/**
* @brief The frontend supports asynch execution.
*
* A Graphic UI will support this, a CLI may not. This can be used in
* subclass methods to decide whether to start threads for block free UI.
*
* Note that even a progress indicator's update called regularly can solve
* the blocking UI problem in some cases even when an event loop is present.
* This is how wxWidgets gauge work but creating a separate thread will make
* the UI even more fluent.
*
* @return true if a job or method can be executed asynchronously, false
* otherwise.
*/
bool supports_asynch() const;
protected:
/**