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 anasio::io_context
. The thread executingio_context.run()
is the one to execute any events scheduled on this run loop. -
vtkAsioServiceThread
An abstraction of a thread that handles creating astd::thread
, pairing it with anasio::io_context
, constructing avtkAsioRunLoop
and exposing the associated scheduler.