Changeset 206 in flair-src for trunk/lib/FlairCore


Ignore:
Timestamp:
Jan 9, 2018, 11:43:37 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

m

Location:
trunk/lib/FlairCore/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/SharedMem_impl.cpp

    r203 r206  
    127127    }
    128128  } else if (type==SharedMem::Type::producerConsumer) {
    129       if (sem_producer.GetSemaphore(nsTimeout)) {
    130         memcpy(buf, mem_segment, size);
    131         sem_consumer.ReleaseSemaphore();
     129    if (sem_producer.GetSemaphore(nsTimeout)) {
     130      memcpy(buf, mem_segment, size);
     131      sem_consumer.ReleaseSemaphore();
    132132      return true;
    133133    }
  • trunk/lib/FlairCore/src/Thread_impl.cpp

    r202 r206  
    227227    self->Err("Error rt_task_wait_period %s\n", strerror_r(-status, errorMsg, sizeof(errorMsg)));
    228228        }
     229//avoid spamming messages
     230/*
    229231  if (status == -ETIMEDOUT) {
    230232    self->Err("overrun: %lld\n", overruns_r);
    231         }
     233        }*/
    232234#else
    233235  self->SleepUntil(next_time);
    234236  Time current = GetTime();
    235   if(current>next_time+period) self->Err("overrun of %lld\n", current-next_time);
     237//avoid spamming messages
     238  //if(current>next_time+period) self->Err("overrun of %lld\n", current-next_time);
    236239  while (next_time < current) {
    237240    next_time += period;
Note: See TracChangeset for help on using the changeset viewer.