Lines Matching refs:tls
68 egl_tls_t* tls = getTLS(); in setErrorEtcImpl() local
69 if (tls->error != error) { in setErrorEtcImpl()
79 tls->error = error; in setErrorEtcImpl()
84 egl_tls_t* tls = getTLS(); in logNoContextCall() local
85 if (tls->logCallWithNoContext) { in logNoContextCall()
86 tls->logCallWithNoContext = false; in logNoContextCall()
94 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getTLS() local
95 if (tls == 0) { in getTLS()
96 tls = new egl_tls_t; in getTLS()
97 pthread_setspecific(sKey, tls); in getTLS()
99 return tls; in getTLS()
104 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in clearTLS() local
105 if (tls) { in clearTLS()
107 delete tls; in clearTLS()
122 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getError() local
123 if (!tls) { in getError()
126 EGLint error = tls->error; in getError()
127 tls->error = EGL_SUCCESS; in getError()
140 egl_tls_t* tls = (egl_tls_t *)pthread_getspecific(sKey); in getContext() local
141 if (!tls) return EGL_NO_CONTEXT; in getContext()
142 return tls->ctx; in getContext()