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.
uint32_t*samps[2];//= (uint32_t **)buff;
//printf("Reading %d samples from Iris...\n", nsamps);
//printf("Reading %d samples from Iris...\n", nsamps);
//fflush(stdout);
//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.