fix(io): igtl client is not thread safe
Description
Make io_igtl::Client thread safe at connect / disconnect.
OpenIgtLink socket class isn't thread safe at connection due to internal function calls (details in #736 (closed)).
Closes #736 (closed)
How to test it?
You can use this patch client-thread-safe.patch
- Compile igtlClientThreadSafe
- Run it with and without this MR
$ ./bin/igtlclientthreadsafe <portnum>
- Crash without this MR. No Crash with the MR.
NOTE: patch may not work on windows...