Cleanup logging and fix a startup race condition that manifested on Firestone.
diff --git a/libs/rs/rsThreadIO.cpp b/libs/rs/rsThreadIO.cpp
index 5f62ad1..89df59d 100644
--- a/libs/rs/rsThreadIO.cpp
+++ b/libs/rs/rsThreadIO.cpp
@@ -34,22 +34,17 @@
bool ThreadIO::playCoreCommands(Context *con, bool waitForCommand)
{
- //LOGE("playCoreCommands 1");
uint32_t cmdID = 0;
uint32_t cmdSize = 0;
bool ret = false;
while(!mToCore.isEmpty() || waitForCommand) {
ret = true;
- //LOGE("playCoreCommands 2");
const void * data = mToCore.get(&cmdID, &cmdSize);
waitForCommand = false;
- //LOGE("playCoreCommands 3 %i %i", cmdID, cmdSize);
+ //LOGV("playCoreCommands 3 %i %i", cmdID, cmdSize);
gPlaybackFuncs[cmdID](con, data);
- //LOGE("playCoreCommands 4");
-
mToCore.next();
- //LOGE("playCoreCommands 5");
}
return ret;
}