I have a C++ plugin that is triggered by running:
[DllImport(“raas_plugin”)]
public static extern void start_ssp_client_raas_c_wrapper();
The C++ library listens on a zmq socket and listens for messages has a function to return those messages
[DllImport(“raas_plugin”)]
public static extern void return_new_messages(IntPtr messages);
I start the C++ plugin by running on Start()
raasThread = new Thread(() => {
start_ssp_client_raas_c_wrapper();
});
raasThread.Start();
Unity is interrupting the C++ thread and causing “Interrupted system call”
I know this isn’t exactly sanctioned by Unity, threading plugins, but I know it has been done before very well and shouldn’t be an issue if you set it up correctly.
How can I set up my C++ plugin so it doesn’t get suspended by Unity and cause “Interrupted system call”?