summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Shih-wei Liao <sliao@google.com> 2010-12-07 14:02:31 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-12-07 14:02:31 -0800
commitb314748911e7fc4fa2b1ac0f8539f10537e69a34 (patch)
tree235dfb0bb78c26e353d4010fa2057df48884bb6a /libs
parentef1879593183b607fa45a2c2b60304e158a23fd2 (diff)
parentb7282bd2e773de998056c76d3da5d156c872114c (diff)
Merge "Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and then cache-reloading."
Diffstat (limited to 'libs')
-rw-r--r--libs/rs/rsScriptC.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 6587b51627db..d4edafd4186b 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -378,6 +378,12 @@ void ScriptCState::clear(Context *rsc) {
static BCCvoid* symbolLookup(BCCvoid* pContext, const BCCchar* name) {
const ScriptCState::SymbolTable_t *sym;
ScriptC *s = (ScriptC *)pContext;
+ if (!strcmp(name, "__isThreadable")) {
+ return (BCCvoid*) s->mEnviroment.mIsThreadable;
+ } else if (!strcmp(name, "__clearThreadable")) {
+ s->mEnviroment.mIsThreadable = false;
+ return NULL;
+ }
sym = ScriptCState::lookupSymbol(name);
if (!sym) {
sym = ScriptCState::lookupSymbolCL(name);