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).
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 #17It 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_sto read or write).