[BACK]Return to aproc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/Attic/aproc.c between version 1.58 and 1.59

version 1.58, 2010/05/04 19:40:08 version 1.59, 2010/05/07 07:15:50
Line 808 
Line 808 
                 if (odone > maxwrite)                  if (odone > maxwrite)
                         odone = maxwrite;                          odone = maxwrite;
                 p->u.mix.lat += odone;                  p->u.mix.lat += odone;
                 p->u.mix.abspos += odone;  
                 LIST_FOREACH(i, &p->ins, ient) {                  LIST_FOREACH(i, &p->ins, ient) {
                         i->r.mix.done -= odone;                          i->r.mix.done -= odone;
                 }                  }
Line 894 
Line 893 
                 odone = maxwrite;                  odone = maxwrite;
         if (odone > 0) {          if (odone > 0) {
                 p->u.mix.lat += odone;                  p->u.mix.lat += odone;
                 p->u.mix.abspos += odone;  
                 LIST_FOREACH(i, &p->ins, ient) {                  LIST_FOREACH(i, &p->ins, ient) {
                         i->r.mix.done -= odone;                          i->r.mix.done -= odone;
                 }                  }
Line 1024 
Line 1022 
         p->u.mix.lat = 0;          p->u.mix.lat = 0;
         p->u.mix.round = round;          p->u.mix.round = round;
         p->u.mix.maxlat = maxlat;          p->u.mix.maxlat = maxlat;
         p->u.mix.abspos = 0;  
         p->u.mix.ctl = NULL;          p->u.mix.ctl = NULL;
         p->u.mix.mon = NULL;          p->u.mix.mon = NULL;
         return p;          return p;
Line 1083 
Line 1080 
         struct abuf *obuf = LIST_FIRST(&p->outs);          struct abuf *obuf = LIST_FIRST(&p->outs);
   
         p->u.mix.lat = 0;          p->u.mix.lat = 0;
         p->u.mix.abspos = 0;  
         obuf->w.mix.todo = 0;          obuf->w.mix.todo = 0;
 }  }
   
Line 1105 
Line 1101 
                         break;                          break;
                 obuf->w.mix.todo -= count;                  obuf->w.mix.todo -= count;
                 p->u.mix.lat += count;                  p->u.mix.lat += count;
                 p->u.mix.abspos += count;  
                 abuf_wcommit(obuf, count);                  abuf_wcommit(obuf, count);
                 if (APROC_OK(p->u.mix.mon))                  if (APROC_OK(p->u.mix.mon))
                         mon_snoop(p->u.mix.mon, obuf, 0, count);                          mon_snoop(p->u.mix.mon, obuf, 0, count);
Line 1344 
Line 1339 
         abuf_rdiscard(ibuf, idone);          abuf_rdiscard(ibuf, idone);
         abuf_opos(ibuf, idone);          abuf_opos(ibuf, idone);
         p->u.sub.lat -= idone;          p->u.sub.lat -= idone;
         p->u.sub.abspos += idone;  
         return 1;          return 1;
 }  }
   
Line 1377 
Line 1371 
         abuf_rdiscard(ibuf, idone);          abuf_rdiscard(ibuf, idone);
         abuf_opos(ibuf, idone);          abuf_opos(ibuf, idone);
         p->u.sub.lat -= idone;          p->u.sub.lat -= idone;
         p->u.sub.abspos += idone;  
         return 1;          return 1;
 }  }
   
Line 1474 
Line 1467 
         p->u.sub.lat = 0;          p->u.sub.lat = 0;
         p->u.sub.round = round;          p->u.sub.round = round;
         p->u.sub.maxlat = maxlat;          p->u.sub.maxlat = maxlat;
         p->u.sub.abspos = 0;  
         p->u.sub.ctl = NULL;          p->u.sub.ctl = NULL;
         return p;          return p;
 }  }
Line 1483 
Line 1475 
 sub_clear(struct aproc *p)  sub_clear(struct aproc *p)
 {  {
         p->u.sub.lat = 0;          p->u.sub.lat = 0;
         p->u.sub.abspos = 0;  
 }  }
   
 /*  /*

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59