-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m_BufferSize设置时机可能导致LogBuffer中的bufferSize与Cache的bufferSize不一致 #13
Comments
m_BufferSize 涉及到mmap缓冲区的调整,而缓冲区创建是要在组件使用之前就要准备好,否则传进来的数据没有安全地方存储。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DataTransHub::SetBufferSize将修改m_BufferSize放到了主线程中,如果此时初始化执行顺序是DataTransHub::SetBufferSize->DataTransHub::Start。LogBuffer中PtrBuffer的max_length_可能仍为默认取值,而非修改取值。
这里的size修改为什么要放到主线程,有什么写法能避免这个问题吗?
The text was updated successfully, but these errors were encountered: