Commit 1e6534a7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Parser: Reset the counters as a release operation

This should help with the nbScheduled >= nbDone assertion that sometimes
triggers in vlc-iOS
(should) fix #375
parent 5ff37c6f
Pipeline #145228 passed with stages
in 4 minutes and 54 seconds
......@@ -108,8 +108,8 @@ void Parser::flush()
* The services are now paused so we are ensured we won't have a concurrent
* update for the task counters
*/
m_opDone.store( 0, std::memory_order_relaxed );
m_opScheduled.store( 0, std::memory_order_relaxed );
m_opDone.store( 0, std::memory_order_release );
m_opScheduled.store( 0, std::memory_order_release );
}
void Parser::prepareRescan()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment