Lines Matching refs:tls
78 egl_tls_t* tls = static_cast<egl_tls_t*>(data); in destructTLSData() local
79 if (!tls) return; in destructTLSData()
98 pthread_setspecific(sKey, tls); in destructTLSData()
106 egl_tls_t* tls = getTLS(); in setErrorEtcImpl() local
107 if (tls->error != error) { in setErrorEtcImpl()
114 tls->error = error; in setErrorEtcImpl()
119 egl_tls_t* tls = getTLS(); in logNoContextCall() local
120 if (tls->logCallWithNoContext) { in logNoContextCall()
121 tls->logCallWithNoContext = false; in logNoContextCall()
128 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getTLS() local
129 if (tls == nullptr) { in getTLS()
130 tls = new egl_tls_t; in getTLS()
131 pthread_setspecific(sKey, tls); in getTLS()
133 return tls; in getTLS()
138 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in clearTLS() local
139 if (tls) { in clearTLS()
141 delete tls; in clearTLS()
156 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getError() local
157 if (!tls) { in getError()
160 EGLint error = tls->error; in getError()
161 tls->error = EGL_SUCCESS; in getError()
174 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getContext() local
175 if (!tls) return EGL_NO_CONTEXT; in getContext()
176 return tls->ctx; in getContext()