Diff for /libaitsched/example/test_time.c between versions 1.6 and 1.6.2.1

version 1.6, 2012/08/08 08:25:39 version 1.6.2.1, 2012/08/08 23:03:53
Line 21  void *event(sched_task_t *arg) Line 21  void *event(sched_task_t *arg)
   
 void *regular(sched_task_t *arg)  void *regular(sched_task_t *arg)
 {  {
        printf("Task::\n");        printf("Task(%lu):: %s\n", TASK_VAL(arg), (char*) TASK_ARG(arg));
         fflush(stdout);          fflush(stdout);
         return NULL;          return NULL;
 }  }
Line 139  main(int argc, char **argv) Line 139  main(int argc, char **argv)
                 return 2;                  return 2;
         }          }
   
        if (!schedTask(root, regular, "piuk", 1111, NULL, 0)) {        if (!schedTask(root, regular, "piuk", 11, NULL, 0)) {
                 printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                 return 3;
         }
         if (!schedTask(root, regular, "piuk", 1, NULL, 0)) {
                 printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                 return 3;
         }
         if (!schedTask(root, regular, "piuk", 0, NULL, 0)) {
                 printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                 return 3;
         }
         if (!schedTask(root, regular, "piuk", 1000001, NULL, 0)) {
                 printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());                  printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                 return 3;                  return 3;
         }          }

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


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