LOG_D(PHY,"Frame %d, Subframe %d: RU %d Waking up eNB,RU_mask %x\n",ru->proc.frame_rx,ru->proc.subframe_rx,ru->idx,proc->RU_mask);
pthread_mutex_lock(&proc->mutex_RU);
for(i=0;i<eNB->num_RU;i++){
if(ru==eNB->RU_list[i]){
//AssertFatal(((proc->RU_mask&(1<<i)) == 0) ,
if((proc->RU_mask&(1<<i))>0)
LOG_E(PHY,"eNB %d frame %d, subframe %d : previous information from RU %d (num_RU %d,mask %x) has not been served yet!\n",eNB->Mod_id,ru->proc.frame_rx,ru->proc.subframe_rx,ru->idx,eNB->num_RU,proc->RU_mask);
proc->RU_mask|=(1<<i);
}
}
if(proc->RU_mask!=(1<<eNB->num_RU)-1){// not all RUs have provided their information so return
pthread_mutex_unlock(&proc->mutex_RU);
return(0);
}
else{// all RUs have provided their information so continue on and wakeup eNB processing