job/queue: restrict job release lambda's parameters

This commit is contained in:
Danny Robson 2018-06-18 14:01:06 +10:00
parent d74fca4e98
commit ba0eabc848

View File

@ -111,7 +111,7 @@ queue::loop ()
return res; return res;
} (); } ();
util::scoped::function cleanup ([&, this] () { util::scoped::function cleanup ([&todo, this] () noexcept {
while (!m_tasks.finishing.push (todo)) while (!m_tasks.finishing.push (todo))
; ;
m_doomed.release (); m_doomed.release ();