summaryrefslogtreecommitdiff
path: root/libs/rs/rsContext.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-06-23 12:22:47 -0700
committer Jason Sams <rjsams@android.com> 2009-06-23 12:22:47 -0700
commitf29ca50d80e3dc379de1642e85b7963175b2ca38 (patch)
tree17854358cfe316c08dbf5c80f8af8b0c7849bc33 /libs/rs/rsContext.cpp
parentf8001669ba7d9b3d0e097c7124e670f13374a6c7 (diff)
Cleanup logging and fix a startup race condition that manifested on Firestone.
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r--libs/rs/rsContext.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 0f78df4e6ebf..c731db00afcc 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -119,9 +119,6 @@ void * Context::threadProc(void *vrsc)
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 @@ Context::Context(Device *dev, Surface *sur)
mRunning = false;
mExit = false;
- mServerCommands.init(256);
- mServerReturns.init(256);
-
// see comment in header
gCon = this;
@@ -194,13 +188,14 @@ Context::Context(Device *dev, Surface *sur)
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);
}