Changeset 206 in flair-src for trunk/lib/FlairCore
- Timestamp:
- Jan 9, 2018, 11:43:37 AM (7 years ago)
- Location:
- trunk/lib/FlairCore/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/SharedMem_impl.cpp
r203 r206 127 127 } 128 128 } else if (type==SharedMem::Type::producerConsumer) { 129 130 131 129 if (sem_producer.GetSemaphore(nsTimeout)) { 130 memcpy(buf, mem_segment, size); 131 sem_consumer.ReleaseSemaphore(); 132 132 return true; 133 133 } -
trunk/lib/FlairCore/src/Thread_impl.cpp
r202 r206 227 227 self->Err("Error rt_task_wait_period %s\n", strerror_r(-status, errorMsg, sizeof(errorMsg))); 228 228 } 229 //avoid spamming messages 230 /* 229 231 if (status == -ETIMEDOUT) { 230 232 self->Err("overrun: %lld\n", overruns_r); 231 } 233 }*/ 232 234 #else 233 235 self->SleepUntil(next_time); 234 236 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); 236 239 while (next_time < current) { 237 240 next_time += period;
Note:
See TracChangeset
for help on using the changeset viewer.