mirror of https://github.com/PentHertz/srsLTE.git
srsLTE: applied minor comments in tti semaphore
This commit is contained in:
parent
d2c6dda025
commit
a7e92c384e
|
@ -39,11 +39,6 @@ private:
|
|||
std::deque<T> fifo;
|
||||
|
||||
public:
|
||||
void reset()
|
||||
{
|
||||
// Do something here
|
||||
}
|
||||
|
||||
void wait(T id)
|
||||
{
|
||||
bool expired = false;
|
||||
|
@ -55,7 +50,9 @@ public:
|
|||
expired = (cvar.wait_until(lock, expire_time) == std::cv_status::timeout);
|
||||
}
|
||||
|
||||
assert(!expired);
|
||||
if (expired) {
|
||||
perror("TTI semaphore wait timeout");
|
||||
}
|
||||
}
|
||||
|
||||
void push(T id)
|
||||
|
@ -82,7 +79,9 @@ public:
|
|||
expired = (cvar.wait_until(lock, expire_time) == std::cv_status::timeout);
|
||||
}
|
||||
|
||||
assert(!expired);
|
||||
if (expired) {
|
||||
perror("TTI semaphore wait all expired");
|
||||
}
|
||||
}
|
||||
};
|
||||
} // namespace srslte
|
||||
|
|
|
@ -649,8 +649,6 @@ void phy_common::get_sync_metrics(sync_metrics_t m[SRSLTE_MAX_CARRIERS])
|
|||
|
||||
void phy_common::reset_radio()
|
||||
{
|
||||
semaphore.reset();
|
||||
|
||||
// End Tx streams even if they are continuous
|
||||
// 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.
|
||||
|
|
Loading…
Reference in New Issue