uw-ictd / open5gs

open5gs is an open source implementation of the Evolved Packet Core and 5GC supporting 3GPP Release 16. This repository is a maintenance and research fork of the main upstream open5gs/open5gs.
https://open5gs.org
GNU Affero General Public License v3.0
2 stars 0 forks source link

Implemented mutex lock for enb_ue_list and mme_ue_list #15

Closed pathiratk closed 4 years ago

spencersevilla commented 4 years ago

@pathiratk this looks mainly good! I took a pass and made a couple of minor fixes, to 1) lock the list when we lookup an enb_ue and 2) to avoid a double-locking scenario in the free all mme_ue case (it calls mme_ue_remove which also locks the same list). Would you mind taking a pass over my edits to make sure I didn't break anything else?

pathiratk commented 4 years ago

Thank you for catching that! I think it looks great, and it also passes the test.