Skip to content

Mutex does not protect parallel access to same serial port correctly #9

Description

@SeasDiver

If you have a multidrop serial configuration - multiple devices on same serial port using unique Device IDs, the mutex that is created to protect communications does not work if there are parallel accesses to the Read/Write register functions. The problem is that each Create Serial Master generates a unique Mutex whereas it should be a unique mutex for each serial port, not each device on the serial port. You will not see a problem if using a single device or if all of your register accesses are serialized, but if you parallelize the application, then you can have two different accesses to the same serial port which will screw up communications resulting in error 56.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions