diff options
author | Steven Moreland <smoreland@google.com> | 2019-04-02 18:13:21 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2019-04-04 17:09:26 +0000 |
commit | b951857619feae7e76461ecb006dfdad45afa2b4 (patch) | |
tree | 16cdb46c33d5b560f4f6f0f344d368e948b9745c /IPCThreadState.cpp | |
parent | 7219c16518d7c74b8e6e8de166e9b890d361cfd1 (diff) | |
download | libhwbinder-b951857619feae7e76461ecb006dfdad45afa2b4.tar.gz |
Restore to libbinder style setTheContextObject.
libhwbinder made the_context_object a member of IPCThreadState.
Reverting here for two reasons:
- reduce libbinder/libhwbinder delta
- this breaks multi-threaded context service managers
Bug: 129785390
Test: (sanity) boot
Change-Id: I0be4cacffb5a207ebbc9724ffb92c1c7d9de3a2f
Diffstat (limited to 'IPCThreadState.cpp')
-rw-r--r-- | IPCThreadState.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/IPCThreadState.cpp b/IPCThreadState.cpp index dacc0b5..742eba6 100644 --- a/IPCThreadState.cpp +++ b/IPCThreadState.cpp @@ -1031,9 +1031,11 @@ status_t IPCThreadState::writeTransactionData(int32_t cmd, uint32_t binderFlags, return NO_ERROR; } +sp<BHwBinder> the_context_object; + void IPCThreadState::setTheContextObject(sp<BHwBinder> obj) { - mContextObject = obj; + the_context_object = obj; } bool IPCThreadState::isLooperThread() @@ -1210,7 +1212,7 @@ status_t IPCThreadState::executeCommand(int32_t cmd) } } else { - error = mContextObject->transact(tr.code, buffer, &reply, tr.flags, reply_callback); + error = the_context_object->transact(tr.code, buffer, &reply, tr.flags, reply_callback); } mIPCThreadStateBase->popCurrentState(); |