Add universal way to shutdown sockets on Wine side

This commit is contained in:
Robbert van der Helm
2021-05-01 16:47:09 +02:00
parent 0f2db64aeb
commit d8ca4022d1
5 changed files with 24 additions and 0 deletions
+8
View File
@@ -102,6 +102,14 @@ class HostBridge {
const boost::filesystem::path plugin_path;
protected:
/**
* Used as part of the watchdog that shuts down a plugin when the remote
* native host process dies. This is used to prevent plugins from hanging
* indefinitely on a `recv()`. This function should just call
* `sockets.close()`.
*/
virtual void close_sockets() = 0;
/**
* The IO context used for event handling so that all events and window
* message handling can be performed from a single thread, even when hosting