I/O priority support with cfq scheduler (needs new kernel patch)
[enigma2.git] / main / enigma.cpp
index 96b4cef1c43e15a8874b2c696359295d06befdb2..5a22110e4e15280050d223d51284559707fae6ea 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <lib/actions/action.h>
 #include <lib/driver/rc.h>
+#include <lib/base/ioprio.h>
 #include <lib/base/ebase.h>
 #include <lib/base/eerror.h>
 #include <lib/base/init.h>
@@ -46,13 +47,6 @@ void object_dump()
 
 static eWidgetDesktop *wdsk, *lcddsk;
 
-PSignal1<void,int> keyPressed;
-
-PSignal1<void,int> &keyPressedSignal()
-{
-       return keyPressed;
-}
-
 static int prev_ascii_code;
 
 int getPrevAsciiCode()
@@ -73,8 +67,6 @@ void keyEvent(const eRCKey &key)
        }
        else
                ptr->keyPressed(0, key.code, key.flags);
-       if (!key.flags)
-               keyPressed(key.code);
 }
 
 /************************************************/
@@ -200,7 +192,9 @@ int main(int argc, char **argv)
        printf("executing main\n");
        
        bsodCatchSignals();
-       
+
+       setIoPrio(IOPRIO_CLASS_BE, 3);
+
        python.execute("mytest", "__main__");
        
        if (exit_code == 5) /* python crash */