]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/blobdiff - src/frsh/fres/resalloc/fres_vres.h
fosa: RTEMS thread id handling updated
[frescor/frsh-forb.git] / src / frsh / fres / resalloc / fres_vres.h
index 22f7d77dac0550fbebb31b6ef5e9d196ccef1367..23a666436c93e983acb678416682e059c3d5d28d 100644 (file)
@@ -132,16 +132,23 @@ int fres_thread_vres_cmp
        /*
         * TODO:
         *  Make this a little bit less specific!
+        *  What?
         */
-       if (a->thread_id.linux_tid < a->thread_id.linux_tid)
-               return -1;
-       else if (a->thread_id.linux_tid > a->thread_id.linux_tid)
-               return +1;
-       else if (a->vres_type < b->vres_type)
+//     if (a->thread_id.linux_tid < a->thread_id.linux_tid)
+//             return -1;
+//     else if (a->thread_id.linux_tid > a->thread_id.linux_tid)
+//             return +1;
+//     else if (a->vres_type < b->vres_type)
+//             return -1;
+//     else if (a->vres_type > b->vres_type)
+//             return +1;
+
+       if (a->vres_type < b->vres_type)
                return -1;
        else if (a->vres_type > b->vres_type)
                return +1;
-
+       
+       
        return 0;
 }