mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 06:31:48 +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));
|
||||
}
|
||||
|
||||
// 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.
|
||||
// Note that this can be called from the UI thread and will not block it if the
|
||||
// jobs take longer to cancel.
|
||||
// Note that this can be called from the UI thread and will not block it if
|
||||
// the jobs take longer to cancel.
|
||||
template<class...Args> bool replace_job(Worker &w, Args&& ...args)
|
||||
{
|
||||
w.cancel_all();
|
||||
|
Loading…
x
Reference in New Issue
Block a user