very minor formatting update

This commit is contained in:
itsmattkc
2022-05-10 10:59:53 -07:00
parent 34bc9b95a9
commit d6ae50f6fc
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -22,8 +22,8 @@
namespace olive {
ThreadPool::ThreadPool(unsigned threads, QObject *parent)
: QObject(parent)
ThreadPool::ThreadPool(unsigned threads, QObject *parent) :
QObject(parent)
{
if (threads == 0) {
threads = std::thread::hardware_concurrency();
+1 -4
View File
@@ -40,10 +40,7 @@ public:
using TaskType = RenderTicketPtr;
ThreadPool(unsigned threads, QObject *parent);
ThreadPool(const ThreadPool &) = delete;
ThreadPool(ThreadPool &&) = delete;
ThreadPool & operator=(const ThreadPool&) = delete;
ThreadPool & operator=(ThreadPool &&) = delete;
DISABLE_COPY_MOVE(ThreadPool)
virtual void RunTicket(RenderTicketPtr ticket) const = 0;
void AddTicket(RenderTicketPtr ticket, RenderTicketPriority priority = RenderTicketPriority::kNormal);