Is libmodbus-2.0.0 thread safe

Asked by Jeff

I need to run multiple Master threads (one per remote device) and want to make sure that libmodbus will be thread safe.

libmodbus Slave thread-safe-ness could become important in the future so I might as well ask about that.

Question information

Language:
English Edit question
Status:
Answered
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stéphane Raimbault (sra) said :
#1

Yes, libmodbus is thread safe, if you want a slave able to open multiple connections have a look to bandwidth-slave-many-up.c in trunk branch (bzr).

Can you help with this problem?

Provide an answer of your own, or ask Jeff for more information if necessary.

To post a message you must log in.