Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
This commit is contained in:
@@ -111,7 +111,7 @@ class DecodePoolImpl {
|
||||
MonitorAutoLock lock(mMonitor);
|
||||
mShuttingDown = true;
|
||||
mAvailableThreads = 0;
|
||||
threads.SwapElements(mThreads);
|
||||
threads = std::move(mThreads);
|
||||
mMonitor.NotifyAll();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user