srsLTE: applied minor comments in tti semaphore

This commit is contained in:
Xavier Arteaga 2019-12-18 13:35:52 +01:00 committed by Xavier Arteaga
parent d2c6dda025
commit a7e92c384e
2 changed files with 6 additions and 9 deletions

View File

@ -39,11 +39,6 @@ private:
std::deque<T> fifo; std::deque<T> fifo;
public: public:
void reset()
{
// Do something here
}
void wait(T id) void wait(T id)
{ {
bool expired = false; bool expired = false;
@ -55,7 +50,9 @@ public:
expired = (cvar.wait_until(lock, expire_time) == std::cv_status::timeout); expired = (cvar.wait_until(lock, expire_time) == std::cv_status::timeout);
} }
assert(!expired); if (expired) {
perror("TTI semaphore wait timeout");
}
} }
void push(T id) void push(T id)
@ -82,7 +79,9 @@ public:
expired = (cvar.wait_until(lock, expire_time) == std::cv_status::timeout); expired = (cvar.wait_until(lock, expire_time) == std::cv_status::timeout);
} }
assert(!expired); if (expired) {
perror("TTI semaphore wait all expired");
}
} }
}; };
} // namespace srslte } // namespace srslte

View File

@ -649,8 +649,6 @@ void phy_common::get_sync_metrics(sync_metrics_t m[SRSLTE_MAX_CARRIERS])
void phy_common::reset_radio() void phy_common::reset_radio()
{ {
semaphore.reset();
// End Tx streams even if they are continuous // End Tx streams even if they are continuous
// Since is_first_of_burst is set to true, the radio need to send // Since is_first_of_burst is set to true, the radio need to send
// end of burst in order to stall correctly the Tx stream. // end of burst in order to stall correctly the Tx stream.