I/O priority support with cfq scheduler (needs new kernel patch)
[enigma2.git] / lib / base / filepush.h
index 25257880d4056c28c00f3b59ffcbda2f87f92b35..0749cd43d4b3f0c68b19c44e5afd37e7a06b088d 100644 (file)
@@ -2,6 +2,7 @@
 #define __lib_base_filepush_h
 
 #include <lib/base/thread.h>
+#include <lib/base/ioprio.h>
 #include <libsig_comp.h>
 #include <lib/base/message.h>
 #include <sys/types.h>
@@ -16,8 +17,9 @@ public:
 
 class eFilePushThread: public eThread, public Object
 {
+       int prio_class, prio;
 public:
-       eFilePushThread();
+       eFilePushThread(int prio_class=IOPRIO_CLASS_BE, int prio_level=0);
        void thread();
        void stop();
        void start(int sourcefd, int destfd);
@@ -35,7 +37,10 @@ public:
        
        enum { evtEOF, evtReadError, evtWriteError, evtUser };
        Signal1<void,int> m_event;
-       
+
+       void installSigUSR1Handler();
+       void before_set_thread_alive();
+
                /* you can send private events if you want */
        void sendEvent(int evt);
 protected: