|
stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
|
Main-thread / UI-thread executor (Qt, libdispatch, Emscripten, etc.). More...
#include <stlab/config.hpp>Go to the source code of this file.
Variables | |
| constexpr auto | stlab::main_executor |
| Runs void() noexcept tasks on the process main thread (Qt, libdispatch, or Emscripten as configured). | |
Main-thread / UI-thread executor (Qt, libdispatch, Emscripten, etc.).
Tasks submitted to main_executor run on the application's main loop (Qt event loop, libdispatch main queue, or Emscripten main loop when configured). Tasks are executed in submission order.
Destroying main_executor does not destroy the underlying UI/main loop; submitted work still runs. A main executor is not implemented for Windows unless STLAB_MAIN_EXECUTOR selects Qt.