Cleanup logging and fix a startup race condition that manifested on Firestone.
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 0f78df4..c731db0 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -119,9 +119,6 @@
Context *rsc = static_cast<Context *>(vrsc);
gIO = new ThreadIO();
- rsc->mServerCommands.init(128);
- rsc->mServerReturns.init(128);
-
rsc->initEGL();
ScriptTLSStruct *tlsStruct = new ScriptTLSStruct;
@@ -169,9 +166,6 @@
mRunning = false;
mExit = false;
- mServerCommands.init(256);
- mServerReturns.init(256);
-
// see comment in header
gCon = this;
@@ -194,13 +188,14 @@
sparam.sched_priority = ANDROID_PRIORITY_DISPLAY;
pthread_attr_setschedparam(&threadAttr, &sparam);
- LOGE("RS Launching thread");
+ mWndSurface = sur;
+
+ LOGV("RS Launching thread");
status = pthread_create(&mThreadId, &threadAttr, threadProc, this);
if (status) {
LOGE("Failed to start rs context thread.");
}
- mWndSurface = sur;
while(!mRunning) {
sleep(1);
}