mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 04:41:47 +08:00
Clarify doc comment for replace_job
This commit is contained in:
parent
b53ff75cf4
commit
2b25c6fab2
@ -77,10 +77,11 @@ inline bool queue_job(Worker &w, std::unique_ptr<Job> j)
|
|||||||
return w.start_next(std::move(j));
|
return w.start_next(std::move(j));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace the current job queue with a new job. This cancels all jobs and
|
// Replace the current job queue with a new job. The signature is the same
|
||||||
|
// as for queue_job(). This cancels all jobs and
|
||||||
// will not wait. The new job will begin after the queue cancels properly.
|
// will not wait. The new job will begin after the queue cancels properly.
|
||||||
// Note that this can be called from the UI thread and will not block it if the
|
// Note that this can be called from the UI thread and will not block it if
|
||||||
// jobs take longer to cancel.
|
// the jobs take longer to cancel.
|
||||||
template<class...Args> bool replace_job(Worker &w, Args&& ...args)
|
template<class...Args> bool replace_job(Worker &w, Args&& ...args)
|
||||||
{
|
{
|
||||||
w.cancel_all();
|
w.cancel_all();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user