mirror of https://github.com/pvnis/srsRAN_4G.git
ringbuffer: fix timeout calculation for timed read
with ZMQ RF, we've seen the radio returning -1 and traced the issue down to the ringbuffer. in fact, pthread_cond_timedwait() returned 22 (EINVAL) indicating a wrong timeout value. The issue was likely an overflow in the timespec parameter. This patch checks for the return value of pthread_cond_timedwait() and also calculates the nanosecond wrap around for the timespecmaster
parent
aed38a6028
commit
f6d3467884
Loading…
Reference in New Issue