Async input/output class which may be used to manage ASIO operations.
More...
#include <Asio.hpp>
|
| static void | post (const AsioFunction &in_work) |
| | Posts a job to be completed by this ASIO Service. More...
|
| |
| static void | setSignalHandler (const OnSignal &in_onSignal) |
| | Sets the signal handler on the ASIO service. More...
|
| |
| static void | startThreads (size_t in_numThreads) |
| | Creates and adds the specified number of worker threads to the ASIO service. More...
|
| |
| static void | stop () |
| | Stops the ASIO Service. More...
|
| |
|
static void | waitForExit () |
| |
Async input/output class which may be used to manage ASIO operations.
◆ post()
| static void rstudio::launcher_plugins::system::AsioService::post |
( |
const AsioFunction & |
in_work | ) |
|
|
static |
Posts a job to be completed by this ASIO Service.
- Parameters
-
| in_work | The job to be posted to the ASIO Service. |
◆ setSignalHandler()
| static void rstudio::launcher_plugins::system::AsioService::setSignalHandler |
( |
const OnSignal & |
in_onSignal | ) |
|
|
static |
Sets the signal handler on the ASIO service.
The ASIO service will manage signals sent to the process. The signal handler provided here will be invoked when a signal is received.
- Parameters
-
| in_onSignal | The function to invoke when a signal is received. |
◆ startThreads()
| static void rstudio::launcher_plugins::system::AsioService::startThreads |
( |
size_t |
in_numThreads | ) |
|
|
static |
Creates and adds the specified number of worker threads to the ASIO service.
- Parameters
-
| in_numThreads | The number of worker threads to add to the ASIO service. |
◆ stop()
| static void rstudio::launcher_plugins::system::AsioService::stop |
( |
| ) |
|
|
static |
Stops the ASIO Service.
Calling this function will stop all async IO operations for the whole Plugin. IMPORTANT: Only call this function from the main thread immediately prior to shutdown.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/IDE/launcher-plugin-sdk/master/sdk/include/system/Asio.hpp