uint32_t*samps[2]={(uint32_t*)buff[0],(uint32_t*)buff[1]};//cws: it seems another thread can clobber these, so we need to save them locally.
//printf("Reading %d samples from Iris...\n", nsamps);
//fflush(stdout);
intret=0;
staticlonglongnextTime;
staticboolnextTimeValid=false;
iris_state_t*s=(iris_state_t*)device->priv;
booltime_set=false;
longlongtimeNs=0;
intflags;
intsamples_received;
uint32_t*samps[2];//= (uint32_t **)buff;
//printf("Reading %d samples from Iris...\n", nsamps);
//fflush(stdout);
intr;
for(r=0;r<s->device_num;r++)
{
flags=0;
samples_received=0;
samps[0]=(uint32_t*)buff[2*r];
if(cc%2==0)
samps[1]=(uint32_t*)buff[2*r+1];
//uint32_t *samps[2] = {(uint32_t *)buff[2*r], (uint32_t *)buff[2*r+1]}; //cws: it seems another thread can clobber these, so we need to save them locally.