]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Added comment for a possible bug
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 1 Mar 2009 19:12:10 +0000 (20:12 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 1 Mar 2009 19:12:10 +0000 (20:12 +0100)
resources/cpucg/lib/frsh_cpucg.c

index c7efd5b137bb0b4c8d9c029375ba7cd803d624e1..353f9e7ed7f76c9a24c6b07342a837834a7f4cef 100644 (file)
@@ -305,8 +305,10 @@ int frsh_thread_create_and_bind(const frsh_vres_id_t vres,
        wp.vres = vres;
        wp.stopper = &stopper;
 
-       if (!attr)
+       if (!attr) {
+               /* FIXME: Probably "attr = &<something>" is needed here! */
                pthread_attr_init(attr);
+       }
 
        pthread_attr_getschedparam(attr, &param);
        p = param.sched_priority;