job/queue: restrict job release lambda's parameters
This commit is contained in:
parent
d74fca4e98
commit
ba0eabc848
@ -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 ();
|
||||||
|
Loading…
Reference in New Issue
Block a user