Browse Source

Do not create a stratifier statsupdate thread in passthrough mode since the stats always read zero

master
Con Kolivas 10 years ago
parent
commit
806d1c76a2
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -4531,7 +4531,8 @@ int stratifier(proc_instance_t *pi)
create_pthread(&pth_blockupdate, blockupdate, ckp);
mutex_init(&sdata->stats_lock);
create_pthread(&pth_statsupdate, statsupdate, ckp);
if (!ckp->passthrough)
create_pthread(&pth_statsupdate, statsupdate, ckp);
mutex_init(&sdata->share_lock);
mutex_init(&sdata->block_lock);

Loading…
Cancel
Save