Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::PrintHostJobQueue Class Reference

#include <src/slic3r/Utils/PrintHost.hpp>

+ Collaboration diagram for Slic3r::PrintHostJobQueue:

Classes

struct  priv
 

Public Member Functions

 PrintHostJobQueue (GUI::PrintHostQueueDialog *queue_dialog)
 
 PrintHostJobQueue (const PrintHostJobQueue &)=delete
 
 PrintHostJobQueue (PrintHostJobQueue &&other)=delete
 
 ~PrintHostJobQueue ()
 
PrintHostJobQueueoperator= (const PrintHostJobQueue &)=delete
 
PrintHostJobQueueoperator= (PrintHostJobQueue &&other)=delete
 
void enqueue (PrintHostJob job)
 
void cancel (size_t id)
 

Private Attributes

std::shared_ptr< privp
 

Detailed Description

Constructor & Destructor Documentation

◆ PrintHostJobQueue() [1/3]

Slic3r::PrintHostJobQueue::PrintHostJobQueue ( GUI::PrintHostQueueDialog queue_dialog)
112 : p(new priv(this))
113{
114 p->queue_dialog = queue_dialog;
115}
std::shared_ptr< priv > p
Definition PrintHost.hpp:128
Definition CutSurface.cpp:39

References p.

◆ PrintHostJobQueue() [2/3]

Slic3r::PrintHostJobQueue::PrintHostJobQueue ( const PrintHostJobQueue )
delete

◆ PrintHostJobQueue() [3/3]

Slic3r::PrintHostJobQueue::PrintHostJobQueue ( PrintHostJobQueue &&  other)
delete

◆ ~PrintHostJobQueue()

Slic3r::PrintHostJobQueue::~PrintHostJobQueue ( )
118{
119 if (p) { p->stop_bg_thread(); }
120}

References p.

Member Function Documentation

◆ cancel()

void Slic3r::PrintHostJobQueue::cancel ( size_t  id)
322{
323 p->channel_cancels.push(id);
324}

References p.

Referenced by Slic3r::PrintHostJobQueue::priv::perform_job(), and Slic3r::PrintHostJobQueue::priv::progress_fn().

+ Here is the caller graph for this function:

◆ enqueue()

void Slic3r::PrintHostJobQueue::enqueue ( PrintHostJob  job)
315{
316 p->start_bg_thread();
317 p->queue_dialog->append_job(job);
318 p->channel_jobs.push(std::move(job));
319}

References p.

◆ operator=() [1/2]

PrintHostJobQueue & Slic3r::PrintHostJobQueue::operator= ( const PrintHostJobQueue )
delete

◆ operator=() [2/2]

PrintHostJobQueue & Slic3r::PrintHostJobQueue::operator= ( PrintHostJobQueue &&  other)
delete

Member Data Documentation

◆ p

std::shared_ptr<priv> Slic3r::PrintHostJobQueue::p
private

The documentation for this class was generated from the following files: