Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be98cbd4 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Reduce the scope of synchronized() blocks

The following changes are made in this cl:
- Scope of synchronized() blocks is only reduced to be around
  pendingMaps
- @GuardedBy("mLock") for methods is removed: If a method has @GuardedBy("mLock"), then the calling function should
acquire the lock and then call the protected method. Instead, it would
be much cleaner to remove @GuardedBy("mLock") annotation and acquire the
lock inside the method so that the code in calling function is clean.

Bug: 409610090
Test: 418863274
Test: atest
Flag: com.android.internal.telephony.flags.satellite_improve_multi_thread_design
Change-Id: I52b1717f067d09b6fe35622f2acaee3959e12f21
parent 5ce204ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment