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

Commit 66f4831a authored by Brian Carlstrom's avatar Brian Carlstrom
Browse files

frameworks/base: Make Thread::run threadName argument required

Bug: 27557176
Change-Id: Icff15e51fb7c99387ac8317181d12749f343439a
parent 39725076
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1184,8 +1184,7 @@ static int javaDetachThread(void)
    void** args = (void**) malloc(3 * sizeof(void*));   // javaThreadShell must free
    int result;

    if (!threadName)
        threadName = "unnamed thread";
    LOG_ALWAYS_FATAL_IF(threadName == nullptr, "threadName not provided to javaCreateThreadEtc");

    args[0] = (void*) entryFunction;
    args[1] = userData;
+1 −1
Original line number Diff line number Diff line
@@ -400,7 +400,7 @@ int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp<Surface>
                connection.mThread->shutdown();
            }
            connection.mThread = new BufferProducerThread(mDevice, deviceId, &stream);
            connection.mThread->run();
            connection.mThread->run("BufferProducerThread");
        }
    }
    connection.mSurface = surface;