diff options
| author | 2019-01-14 14:46:35 -0800 | |
|---|---|---|
| committer | 2019-01-14 14:46:35 -0800 | |
| commit | 77081f8a47ee575880d7a5244a6827a424f3054d (patch) | |
| tree | 711a540279fdc9630c938eeffef7e01d93a2cdb0 /libs/binder/ProcessState.cpp | |
| parent | f5ca85113d68da6a18571dcbeab8a346e2049c5f (diff) | |
| parent | d5ea8f33633b1cbaadccc52626adf56e38dbc993 (diff) | |
Merge "Allow error/abort for non-oneway calls." am: 4ffbaac8e8 am: 72c3e1959b
am: d5ea8f3363
Change-Id: Iaada60775896b7e09da684fe304d4332ef940dc1
Diffstat (limited to 'libs/binder/ProcessState.cpp')
| -rw-r--r-- | libs/binder/ProcessState.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 53f8dddfe1..3798b61ab9 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -234,6 +234,12 @@ ssize_t ProcessState::getKernelReferences(size_t buf_count, uintptr_t* buf) return count; } +void ProcessState::setCallRestriction(CallRestriction restriction) { + LOG_ALWAYS_FATAL_IF(IPCThreadState::selfOrNull(), "Call restrictions must be set before the threadpool is started."); + + mCallRestriction = restriction; +} + ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle) { const size_t N=mHandleToObject.size(); @@ -426,6 +432,7 @@ ProcessState::ProcessState(const char *driver) , mBinderContextUserData(nullptr) , mThreadPoolStarted(false) , mThreadPoolSeq(1) + , mCallRestriction(CallRestriction::NONE) { if (mDriverFD >= 0) { // mmap the binder, providing a chunk of virtual address space to receive transactions. |