filepush.h: Get rid of IO priority parameters
authorMike Looijmans <milo@openpli.org>
Sun, 27 Dec 2015 10:35:21 +0000 (11:35 +0100)
committerMike Looijmans <milo@openpli.org>
Sun, 27 Dec 2015 10:35:21 +0000 (11:35 +0100)
No need to pass these around when the only client always sets them
to the same value.

lib/base/filepush.cpp
lib/base/filepush.h
lib/dvb/dvb.cpp

index 0d473d5..89fec89 100644 (file)
@@ -6,9 +6,7 @@
 
 //#define SHOW_WRITE_TIME
 
-eFilePushThread::eFilePushThread(int io_prio_class, int io_prio_level, int blocksize, size_t buffersize)
-       :prio_class(io_prio_class),
-        prio(io_prio_level),
+eFilePushThread::eFilePushThread(int blocksize, size_t buffersize):
         m_sg(NULL),
         m_stop(1),
         m_send_pvr_commit(0),
@@ -47,7 +45,7 @@ void eFilePushThread::thread()
 {
        ignore_but_report_signals();
        hasStarted(); /* "start()" blocks until we get here */
-       setIoPrio(prio_class, prio);
+       setIoPrio(IOPRIO_CLASS_BE, 0);
        eDebug("[eFilePushThread] START thread");
 
        do
index ca4ac27..0f1fa54 100644 (file)
@@ -18,7 +18,7 @@ public:
 class eFilePushThread: public eThread, public Object
 {
 public:
-       eFilePushThread(int prio_class, int prio_level, int blocksize, size_t buffersize);
+       eFilePushThread(int blocksize, size_t buffersize);
        ~eFilePushThread();
        void thread();
        void stop();
@@ -40,8 +40,6 @@ public:
 protected:
        virtual void filterRecordData(const unsigned char *data, int len);
 private:
-       int prio_class;
-       int prio;
        iFilePushScatterGather *m_sg;
        int m_stop;
        int m_fd_dest;
index 281d95f..4cb29f5 100644 (file)
@@ -1327,7 +1327,7 @@ class eDVBChannelFilePush: public eFilePushThread
 {
 public:
        eDVBChannelFilePush(int packetsize = 188):
-               eFilePushThread(IOPRIO_CLASS_BE, 0, packetsize, packetsize * 512),
+               eFilePushThread(packetsize, packetsize * 512),
                m_iframe_search(0),
                m_iframe_state(0),
                m_pid(0),