Hi Yang,
Your solution is better than mine, and might be Denis' intention
of modification. Honestly, I ever thought about the change like your proposal (Actually it
was the same as ppessi's patch), but I had a concern on current code. Now we read EFli
and EFpl in parallel. Is it guaranteed the callback of EFli will be called before the
callback of EFpl? IMO, it can't always guarantee this. If I'm correct, your
solution is just half way to the final target. Maybe we need to work out a better one:)
Please note that the ofono_sim_read functions do not work in parallel.
All file operations are added to a queue and executed sequentially.
Hence we can rely on a certain order here.
Regards,
-Denis