pthread_cond_wait(&proc->cond_RUs,&proc->mutex_RUs_tx);// this unlocks mutex_rxtx while waiting and then locks it again
clock_gettime(CLOCK_REALTIME,&now);
abstime.tv_sec=now.tv_sec;
abstime.tv_nsec=now.tv_nsec+time_ns;
if(abstime.tv_nsec>=1000*1000*1000){
abstime.tv_nsec-=1000*1000*1000;
abstime.tv_sec+=1;
}
if((waitret=pthread_cond_timedwait(&proc->cond_RUs,&proc->mutex_RUs_tx,&abstime))==0)break;// this unlocks mutex_rxtx while waiting and then locks it again