util/threadpool: Don't hold work endlessly after processing it
This commit is contained in:
parent
a3b526145c
commit
36976cb550
|
@ -112,6 +112,9 @@ void util::threadpool::work()
|
||||||
reinterpret_cast<ptrdiff_t>(local_work->_data.get()));
|
reinterpret_cast<ptrdiff_t>(local_work->_data.get()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove our reference to the work unit.
|
||||||
|
local_work.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
_worker_idx.fetch_sub(1);
|
_worker_idx.fetch_sub(1);
|
||||||
|
|
Loading…
Reference in New Issue