codec2_vndk: don't spin during sync variable locking/unlocking
Removed spinning and sched_yield for the user-space locking section of lock/unlock and added comments to the code. TODO: remove the spinning code in unlock as it does not seem to be necessary. Bug: 287432155 (cherry picked from https://android-review.googlesource.com/q/commit:6c902ef92de5fa8ae4a1c12dd67e95ac5a8e5935) Merged-In: Ie283402b3177013f918e3facb287c23a13df0550 Change-Id: Ie283402b3177013f918e3facb287c23a13df0550
Loading
Please register or sign in to comment