OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Worker.hpp File Reference
#include <exception>
#include <memory>
#include <type_traits>
#include <utility>
#include "Job.hpp"
Include dependency graph for Worker.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Slic3r::GUI::Worker

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::GUI

Functions

template<class ProcessFn, class FinishFn, class = std::enable_if_t<IsProcessFn<ProcessFn>>, class = std::enable_if_t<IsFinishFn<FinishFn>>>
bool Slic3r::GUI::queue_job (Worker &w, ProcessFn fn, FinishFn finishfn)
template<class ProcessFn, class = std::enable_if_t<IsProcessFn<ProcessFn>>>
bool Slic3r::GUI::queue_job (Worker &w, ProcessFn fn)
bool Slic3r::GUI::queue_job (Worker &w, std::shared_ptr< Job > j)
template<class... Args>
bool Slic3r::GUI::replace_job (Worker &w, Args &&...args)
bool Slic3r::GUI::stop_current_job (Worker &w, unsigned timeout_ms=0)
bool Slic3r::GUI::stop_queue (Worker &w, unsigned timeout_ms=0)

Variables

template<class Fn>
constexpr bool Slic3r::GUI::IsProcessFn = std::is_invocable_v<Fn, Job::Ctl&>
template<class Fn>
constexpr bool Slic3r::GUI::IsFinishFn = std::is_invocable_v<Fn, bool, std::exception_ptr&>