mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-06 11:47:58 -05: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:
1 parent
ddee9f3976
commit
8611125008
4 files changed
+10
-10
No files matched your search
@@ -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