mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-17 07:52:08 +00:00
Change the worker to store the job using shared_ptr, so caller can still hold a reference to the job for other purpose
This commit is contained in:
@@ -170,7 +170,7 @@ bool BoostThreadWorker::wait_for_idle(unsigned timeout_ms)
|
||||
return !timeout_reached;
|
||||
}
|
||||
|
||||
bool BoostThreadWorker::push(std::unique_ptr<Job> job)
|
||||
bool BoostThreadWorker::push(std::shared_ptr<Job> job)
|
||||
{
|
||||
if (!job)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user