OSDN Git Service

Code refactoring: Now "Preferences" and "Recently" used models are in separate classe...
[x264-launcher/x264-launcher.git] / src / thread_encode.h
index 84ccf60..f943fd0 100644 (file)
@@ -53,7 +53,7 @@ public:
                JobStatus_Undefined = 666
        };
        
-       EncodeThread(const QString &sourceFileName, const QString &outputFileName, const OptionsModel *options, const QString &binDir, bool x264_x64, bool x264_10bit, bool avs2yuv_x64, unsigned int processPriroity);
+       EncodeThread(const QString &sourceFileName, const QString &outputFileName, const OptionsModel *options, const QString &binDir, bool x264_x64, bool x264_10bit, bool avs2yuv_x64, int processPriroity);
        ~EncodeThread(void);
 
        QUuid getId(void) { return this->m_jobId; };
@@ -92,7 +92,7 @@ protected:
        const bool m_x264_x64;
        const bool m_x264_10bit;
        const bool m_avs2yuv_x64;
-       const unsigned int m_processPriority;
+       const int m_processPriority;
 
        //Flags
        volatile bool m_abort;
@@ -133,6 +133,7 @@ protected:
        //Static functions
        static QString commandline2string(const QString &program, const QStringList &arguments);
        static QString sizeToString(qint64 size);
+       static void setPorcessPriority(void *processId, int priroity);
 
 signals:
        void statusChanged(const QUuid &jobId, EncodeThread::JobStatus newStatus);