Loading libs/rs/rsContext.cpp +9 −4 Original line number Diff line number Diff line Loading @@ -304,11 +304,16 @@ Context::Context(Device *dev, Surface *sur, bool useDepth) int status; pthread_attr_t threadAttr; if (!gThreadTLSKey) { status = pthread_key_create(&gThreadTLSKey, NULL); if (status) { LOGE("Failed to init thread tls key."); return; } } else { // HACK: workaround gl hang on start exit(-1); } status = pthread_attr_init(&threadAttr); if (status) { Loading libs/rs/rsScriptC.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading
libs/rs/rsContext.cpp +9 −4 Original line number Diff line number Diff line Loading @@ -304,11 +304,16 @@ Context::Context(Device *dev, Surface *sur, bool useDepth) int status; pthread_attr_t threadAttr; if (!gThreadTLSKey) { status = pthread_key_create(&gThreadTLSKey, NULL); if (status) { LOGE("Failed to init thread tls key."); return; } } else { // HACK: workaround gl hang on start exit(-1); } status = pthread_attr_init(&threadAttr); if (status) { Loading
libs/rs/rsScriptC.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading