Fixed mutex not being released

master
ismagom 9 years ago
parent 504d41c7f4
commit efbfecb891

@ -124,8 +124,8 @@ void mux::set_priority(uint32_t lch_id, uint32_t set_priority, int set_PBR, uint
void mux::pdu_release() void mux::pdu_release()
{ {
pthread_mutex_unlock(&mutex);
pdu_buff.release(); pdu_buff.release();
pthread_mutex_unlock(&mutex);
} }
bool mux::pdu_move_to_msg3(uint32_t pdu_sz) bool mux::pdu_move_to_msg3(uint32_t pdu_sz)

@ -125,6 +125,7 @@ void ul_harq_entity::run_tti(uint32_t tti, ul_sched_grant *grant, phy *phy_h)
mux_unit->pdu_release(); mux_unit->pdu_release();
proc[pid].generate_new_tx(tti_tx, mac_pdu_buffer[pid], false, grant, phy_h->get_ul_buffer(tti_tx)); proc[pid].generate_new_tx(tti_tx, mac_pdu_buffer[pid], false, grant, phy_h->get_ul_buffer(tti_tx));
} else { } else {
mux_unit->pdu_release();
Warning("Uplink grant but no MAC PDU in Multiplex Unit buffer\n"); Warning("Uplink grant but no MAC PDU in Multiplex Unit buffer\n");
} }
} }

Loading…
Cancel
Save