am e06c3a59: Merge "Fix cleanup race condition where objects might may not be cleaned up correctly." into honeycomb

* commit 'e06c3a599f5d274ef7b1afa694ac2b1961f75aeb':
  Fix cleanup race condition where objects might may not be cleaned up correctly.
This commit is contained in:
Jason Sams
2011-01-09 16:48:25 -08:00
committed by Android Git Automerger

View File

@@ -539,6 +539,7 @@ void Context::destroyWorkerThreadResources() {
}
ObjectBase::zeroAllUserRef(this);
LOGV("destroyWorkerThreadResources 2");
mExit = true;
}
void * Context::helperThreadProc(void *vrsc) {
@@ -713,6 +714,9 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) {
Context::~Context() {
LOGV("Context::~Context");
mIO.mToCore.flush();
rsAssert(mExit);
mExit = true;
mPaused = false;
void *res;