paulscherrerinstitute / s7plc

EPICS driver for communication with PLCs
GNU General Public License v3.0
6 stars 6 forks source link

Double error printing #6

Open ZanMaticPratnemer opened 3 years ago

ZanMaticPratnemer commented 3 years ago

This pull request addresses the double error printing problem mentioned in #4. Fixed this by rearranging how multithreading works: now there are three threads, one for connection handling and two for communication with the PLC.

After the changes were made I tested the IOC with -fsanitize=thread and didn't find any problems.