diff options
author | 2019-04-01 18:52:30 -0700 | |
---|---|---|
committer | 2019-09-09 22:58:26 +0000 | |
commit | 28723ae444e4ef1678160314bd03cbd8212d7414 (patch) | |
tree | 153768ec1e3b80bcb7f78b373562e2287ffae252 /libs/binder/ProcessState.cpp | |
parent | 8f82e1240fde062a2b30b018015b06c7a757d4bd (diff) |
libbinder: on host
The usecase is unit testing things which implement binder interfaces.
Bug: 124524556
Test: TH runs all relevant unit tests
Change-Id: I8caba1290da6d0354a7736a26d1dad7b6ab852e6
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r-- | libs/binder/ProcessState.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 07db50f7b3..eb828c3ce4 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -189,7 +189,8 @@ ssize_t ProcessState::getKernelReferences(size_t buf_count, uintptr_t* buf) } void ProcessState::setCallRestriction(CallRestriction restriction) { - LOG_ALWAYS_FATAL_IF(IPCThreadState::selfOrNull(), "Call restrictions must be set before the threadpool is started."); + LOG_ALWAYS_FATAL_IF(IPCThreadState::selfOrNull() != nullptr, + "Call restrictions must be set before the threadpool is started."); mCallRestriction = restriction; } |