diff options
| author | 2024-01-16 11:12:27 +0000 | |
|---|---|---|
| committer | 2024-01-18 11:59:56 +0000 | |
| commit | e47a2e5c0666c958c49ad2b092bf172acf280a28 (patch) | |
| tree | 2c9c3cb1dfe63be4509c36e995889ea4ee73540e /libs/androidfw/StringPool.cpp | |
| parent | 3cf2db8aefae1aa36a9546c706539fe0fedc82c9 (diff) | |
Remove RemoteInputConnectionImpl#mLock, which is redudant
It is guaranteed that the following two boolean expressions have
always the same value observed outside from
RemoteInputConnectionImpl#mLock.
A. RemoteInputConnectionImpl#mFinished
B. RemoteInputConnectionImpl#mInputConnection != null
With that we should be able to simply merge them into an atomic
reference object
AtomicReference<InputConnection>
without requiring RemoteInputConnectionImpl#mLock as a lock object.
This CL does so as a preparation to clean up RemoteInputConnectionImpl
for Bug 291826769.
There should be no observable behavior change, except for the fact
that
RemoteInputConnectionImpl#dumpDebug()
no longer blocks other operations that required mLock, which is kind
of out of our original intention.
Bug: 291826769
Test: presubmit
Merged-In: I69fa2c81670f84be3dd4a808262758a803f69dfc
Change-Id: I69fa2c81670f84be3dd4a808262758a803f69dfc
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions