diff options
author | Jason Sams <rjsams@android.com> | 2009-10-06 17:16:55 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-10-06 17:16:55 -0700 |
commit | 996db8dace63c452e5828586415b0dc57cccb3db (patch) | |
tree | 830c10b819407f8539298b40da17ca0557443811 /libs/rs/rsScriptC.cpp | |
parent | 516c31911578db8ce53529483c3ded918ac7dc6b (diff) |
Fix tls crash on startup if more than one RS contexts are created in one process.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r-- | libs/rs/rsScriptC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 20088da31c22..9da7766217b6 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -62,6 +62,7 @@ bool ScriptC::run(Context *rsc, uint32_t launchIndex) { Context::ScriptTLSStruct * tls = (Context::ScriptTLSStruct *)pthread_getspecific(Context::gThreadTLSKey); + rsAssert(tls); if (mEnviroment.mFragmentStore.get()) { rsc->setFragmentStore(mEnviroment.mFragmentStore.get()); |