diff options
author | Shih-wei Liao <sliao@google.com> | 2010-12-07 13:44:10 -0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-12-07 13:47:14 -0800 |
commit | b7282bd2e773de998056c76d3da5d156c872114c (patch) | |
tree | 278a88915d9ef1042e0faf5a2641e4ae7f3a2df9 /libs/rs/rsScriptC.cpp | |
parent | 92d502022d695d60575b405d883a9d56e186b597 (diff) |
Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and
then cache-reloading.
Change-Id: I0f5d54160dd9ee567fae53c69b246f99096993da
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
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); |