Lines Matching refs:tls
65 egl_tls_t* tls = static_cast<egl_tls_t*>(data); in destructTLSData() local
66 if (!tls) return; in destructTLSData()
85 pthread_setspecific(sKey, tls); in destructTLSData()
94 egl_tls_t* tls = getTLS(); in setErrorEtcImpl() local
95 if (tls->error != error) { in setErrorEtcImpl()
105 tls->error = error; in setErrorEtcImpl()
110 egl_tls_t* tls = getTLS(); in logNoContextCall() local
111 if (tls->logCallWithNoContext) { in logNoContextCall()
112 tls->logCallWithNoContext = false; in logNoContextCall()
120 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getTLS() local
121 if (tls == nullptr) { in getTLS()
122 tls = new egl_tls_t; in getTLS()
123 pthread_setspecific(sKey, tls); in getTLS()
125 return tls; in getTLS()
130 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in clearTLS() local
131 if (tls) { in clearTLS()
133 delete tls; in clearTLS()
148 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getError() local
149 if (!tls) { in getError()
152 EGLint error = tls->error; in getError()
153 tls->error = EGL_SUCCESS; in getError()
166 egl_tls_t* tls = (egl_tls_t *)pthread_getspecific(sKey); in getContext() local
167 if (!tls) return EGL_NO_CONTEXT; in getContext()
168 return tls->ctx; in getContext()