Diff for /libaitsched/example/test.c between versions 1.8 and 1.8.4.1

version 1.8, 2012/08/08 08:25:39 version 1.8.4.1, 2012/08/21 11:45:34
Line 115  void *aiobulkwrite(sched_task_t *arg) Line 115  void *aiobulkwrite(sched_task_t *arg)
 }  }
 #endif  #endif
   
   void *thr(sched_task_t *arg)
   {
           printf("thread(%lu):: %s\n", TASK_VAL(arg), (char*) TASK_ARG(arg));
           taskExit(arg, 42);
   }
   
 void sig(int s)  void sig(int s)
 {  {
         switch (s) {          switch (s) {
Line 197  main(int argc, char **argv) Line 203  main(int argc, char **argv)
         if (!schedWrite(root, w, "www", f, NULL, 0)) {          if (!schedWrite(root, w, "www", f, NULL, 0)) {
                 printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());                  printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                 return 6;                  return 6;
           }
   
           if (!schedThread(root, thr, "mdaaaa this is thread task", 0, NULL, 0)) {
                   printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                   return 7;
           }
           if (!schedThread(root, thr, "mdaaaa this is thread task -detached", 42, NULL, 0)) {
                   printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                   return 7;
           }
           if (!schedThread(root, thr, "mdaaaa this is thread task -j", 0, NULL, 0)) {
                   printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError());
                   return 7;
         }          }
   
 #ifdef AIO_SUPPORT  #ifdef AIO_SUPPORT

Removed from v.1.8  
changed lines
  Added in v.1.8.4.1


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