-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Sync Lock: Don't seek phase when disabling sync #4169
Conversation
Pull Request Test Coverage Report for Build 1087668649
💛 - Coveralls |
Ist the main target branch correct? Or does this affect 2.3? |
@@ -389,6 +393,7 @@ class EngineBuffer : public EngineObject { | |||
QAtomicInt m_iEnableSyncQueued; | |||
QAtomicInt m_iSyncModeQueued; | |||
ControlValueAtomic<QueuedSeek> m_queuedSeek; | |||
bool m_previousBufferSeek = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is accessed from multiple threads it should be an atomic for proper memory barriers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't, this value is only written in the processSeek function and used by tests in a non-threaded context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix itself works and locks good. Thank you.
The issue in 2.3 is slightly different.
anything more needed here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, Thank you. LGTM
No description provided.