Skip to content

introduce vtkAsioRunLoop and vtkAsioServiceThread

This MR introduces two new classes that help run the io context in a background thread with additional control to use rxcpp subscribers on that thread.

  • vtkAsioRunLoop is constructed by providing an asio::io_context. The thread executing io_context.run() is the one to execute any events scheduled on this run loop.
  • vtkAsioServiceThread An abstraction of a thread that handles creating a std::thread, pairing it with anasio::io_context , constructing a vtkAsioRunLoop and exposing the associated scheduler.

Merge request reports