Skip to content

fix(io): igtl client is not thread safe

Marc SCHWEITZER requested to merge 736-io-igtl-client-is-not-thread-safe into dev

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

  1. Compile igtlClientThreadSafe
  2. Run it with and without this MR $ ./bin/igtlclientthreadsafe <portnum>
  3. Crash without this MR. No Crash with the MR.

NOTE: patch may not work on windows...

Edited by Marc SCHWEITZER

Merge request reports