Skip to content

PacketsBuffer_s is thread unsafe though used in different threads without any mutexes #22

Description

@iurii-provizio

PacketsBuffer_s (src/PandarGeneralRaw/include/pandarGeneral/pandarGeneral_internal.h) is used for pushing by one thread and reading by another, without any synchronisation primitives such as mutex. It's very thread-unsafe and causes real problems, like #19 and #17

It has to be protected either internally (i.e. made multithread-safe) or externally (i.e. there should be a mutex getting locked every time there is any access to PacketsBuffer_s to read or write).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions