Skip to content

m_BufferSize设置时机可能导致LogBuffer中的bufferSize与Cache的bufferSize不一致 #13

Description

@1623040547

DataTransHub::SetBufferSize将修改m_BufferSize放到了主线程中,如果此时初始化执行顺序是DataTransHub::SetBufferSize->DataTransHub::Start。LogBuffer中PtrBuffer的max_length_可能仍为默认取值,而非修改取值。
这里的size修改为什么要放到主线程,有什么写法能避免这个问题吗?

下载
output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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