Skip to content

Conversation

@vthiery
Copy link
Owner

@vthiery vthiery commented Jan 11, 2021

Make m_mustExit an std::atomic<bool> and use std::memory_order_acq_rel ordering so that other threads are guaranteed to see the change of value of m_mustExit.

…stroyed

Make m_mustExit an std::atomic<bool> and use std::memory_order_acq_rel ordering so that other threads are guaranteed to see the change of value of m_mustExit.
@vthiery vthiery linked an issue Jan 11, 2021 that may be closed by this pull request
Copy link

@jayv jayv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thx!

@vthiery vthiery merged commit 7535d9a into master Jan 12, 2021
@vthiery vthiery deleted the fix-batch-exit branch January 12, 2021 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory-visibility correctness of m_mustExit

3 participants