Diff for /libaitsched/src/aitsched.c between versions 1.6 and 1.6.2.2

version 1.6, 2012/03/13 10:01:59 version 1.6.2.2, 2012/04/26 08:03:27
Line 484  schedRun(sched_root_task_t * __restrict root, volatile Line 484  schedRun(sched_root_task_t * __restrict root, volatile
         if (root->root_hooks.hook_exec.fetch) {          if (root->root_hooks.hook_exec.fetch) {
                 if (killState) {                  if (killState) {
                         if (root->root_hooks.hook_exec.condition)                          if (root->root_hooks.hook_exec.condition)
                                while (root->root_hooks.hook_exec.condition(root, (void*) killState)) {                                while (root && root->root_hooks.hook_exec.condition(root, (void*) killState)) {
                                         if ((task = root->root_hooks.hook_exec.fetch(root, NULL)))                                          if ((task = root->root_hooks.hook_exec.fetch(root, NULL)))
                                                 schedCall(task);                                                  schedCall(task);
                                 }                                  }
                         else                          else
                                while (!*killState) {                                while (!*killState && root) {
                                         if ((task = root->root_hooks.hook_exec.fetch(root, NULL)))                                          if ((task = root->root_hooks.hook_exec.fetch(root, NULL)))
                                                 schedCall(task);                                                  schedCall(task);
                                 }                                  }
                 } else                  } else
                        while ((task = root->root_hooks.hook_exec.fetch(root, NULL)))                        while (root)
                                schedCall(task);                                if ((task = root->root_hooks.hook_exec.fetch(root, NULL)))
                                         schedCall(task);
         }          }
   
         return 0;          return 0;

Removed from v.1.6  
changed lines
  Added in v.1.6.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>