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

Commit 0ac30464 authored by Jason Sams's avatar Jason Sams Committed by Android Git Automerger
Browse files

am 03855bbe: Fix bug 3385881 Launch signals and threads are not always matched...

am 03855bbe: Fix bug 3385881 Launch signals and threads are not always matched in index.  Threads grab launch indexes as they start which may not be the order in which they were launched.

* commit '03855bbe':
  Fix bug 3385881 Launch signals and threads are not always matched in index.  Threads grab launch indexes as they start which may not be the order in which they were launched.
parents cf20b3ae 03855bbe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -735,6 +735,8 @@ Context::~Context() {
    mWorkers.mRunningCount = (int)mWorkers.mCount;
    for (uint32_t ct = 0; ct < mWorkers.mCount; ct++) {
        mWorkers.mLaunchSignals[ct].set();
    }
    for (uint32_t ct = 0; ct < mWorkers.mCount; ct++) {
        int status = pthread_join(mWorkers.mThreadId[ct], &res);
    }
    rsAssert(!mWorkers.mRunningCount);