mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Several improvements to the print job queue
This commit is contained in:
parent
9b21ac877a
commit
fc1a7471cf
13 changed files with 174 additions and 65 deletions
|
@ -158,6 +158,18 @@ GCodeSender::resume_queue()
|
|||
this->send();
|
||||
}
|
||||
|
||||
void
|
||||
GCodeSender::purge_queue()
|
||||
{
|
||||
boost::lock_guard<boost::mutex> l(this->queue_mutex);
|
||||
{
|
||||
// clear queue
|
||||
std::queue<std::string> empty;
|
||||
std::swap(this->queue, empty);
|
||||
}
|
||||
this->queue_paused = false;
|
||||
}
|
||||
|
||||
// purge log and return its contents
|
||||
std::vector<std::string>
|
||||
GCodeSender::purge_log()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue