Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3538893 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "libbinder: remove dead attempt inc code" into main

parents db9c70b2 1bf4291b
Loading
Loading
Loading
Loading
+1 −19
Original line number Original line Diff line number Diff line
@@ -922,28 +922,10 @@ void IPCThreadState::decWeakHandle(int32_t handle)
    flushIfNeeded();
    flushIfNeeded();
}
}


status_t IPCThreadState::attemptIncStrongHandle(int32_t handle)
status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) {
{
#if HAS_BC_ATTEMPT_ACQUIRE
    LOG_REMOTEREFS("IPCThreadState::attemptIncStrongHandle(%d)\n", handle);
    mOut.writeInt32(BC_ATTEMPT_ACQUIRE);
    mOut.writeInt32(0); // xxx was thread priority
    mOut.writeInt32(handle);
    status_t result = UNKNOWN_ERROR;

    waitForResponse(NULL, &result);

#if LOG_REFCOUNTS
    ALOGV("IPCThreadState::attemptIncStrongHandle(%ld) = %s\n",
        handle, result == NO_ERROR ? "SUCCESS" : "FAILURE");
#endif

    return result;
#else
    (void)handle;
    (void)handle;
    ALOGE("%s(%d): Not supported\n", __func__, handle);
    ALOGE("%s(%d): Not supported\n", __func__, handle);
    return INVALID_OPERATION;
    return INVALID_OPERATION;
#endif
}
}


void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder)
void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder)