Removed unused attribute

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent d72820ddaa
commit d5d3594f49

@ -40,7 +40,7 @@ namespace nr {
class sf_worker final : public srslte::thread_pool::worker
{
public:
sf_worker(phy_common* phy_, phy_nr_state* phy_state_, srslte::log* log);
sf_worker(phy_nr_state* phy_state_, srslte::log* log);
~sf_worker() = default;
bool set_carrier_unlocked(uint32_t cc_idx, const srslte_carrier_nr_t* carrier_);
@ -56,7 +56,6 @@ private:
std::vector<std::unique_ptr<cc_worker> > cc_workers;
phy_common* phy = nullptr;
phy_nr_state* phy_state = nullptr;
srslte::log* log_h = nullptr;
};

@ -23,8 +23,7 @@
namespace srsue {
namespace nr {
sf_worker::sf_worker(phy_common* phy_, phy_nr_state* phy_state_, srslte::log* log) :
phy(phy_), phy_state(phy_state_), log_h(log)
sf_worker::sf_worker(phy_nr_state* phy_state_, srslte::log* log) : phy_state(phy_state_), log_h(log)
{
for (uint32_t i = 0; i < phy_state->args.nof_carriers; i++) {
cc_worker* w = new cc_worker(i, log, phy_state);

@ -50,7 +50,7 @@ bool worker_pool::init(phy_common* common, srslte::logger* logger, int prio)
// Add workers to workers pool and start threads
for (uint32_t i = 0; i < common->args->nof_phy_threads; i++) {
auto w = new sf_worker(common, &phy_state, (srslte::log*)log_vec[i].get());
auto w = new sf_worker(&phy_state, (srslte::log*)log_vec[i].get());
pool.init_worker(i, w, prio, common->args->worker_cpu_mask);
workers.push_back(std::unique_ptr<sf_worker>(w));

Loading…
Cancel
Save