Skip to content

Multithread safety for single port #144

@Neuromancer2701

Description

@Neuromancer2701

This is more of question from looking at the code.
I don't see any lock guards in the Serial Port/Stream classes.
So it is just not possible for two threads to share the same port object. e.g. a class variable
because of the all of the limitations on the the objects.
Or is this something that could be improved by adding a lock guard and mutex inside each of the classes? This would allow two threads to share the same port with one blocking until the other is finished.

P.S.- I didn't really know how to ask this question with our cluttering the Issues sorry about that.
Regards,
Seth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions