Lines Matching refs:tls
73 egl_tls_t* tls = getTLS(); in setErrorEtcImpl() local
74 if (tls->error != error) { in setErrorEtcImpl()
84 tls->error = error; in setErrorEtcImpl()
89 egl_tls_t* tls = getTLS(); in logNoContextCall() local
90 if (tls->logCallWithNoContext == true) { in logNoContextCall()
91 tls->logCallWithNoContext = false; in logNoContextCall()
98 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getTLS() local
99 if (tls == 0) { in getTLS()
100 tls = new egl_tls_t; in getTLS()
101 pthread_setspecific(sKey, tls); in getTLS()
103 return tls; in getTLS()
108 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in clearTLS() local
109 if (tls) { in clearTLS()
111 delete tls; in clearTLS()
126 egl_tls_t* tls = (egl_tls_t*)pthread_getspecific(sKey); in getError() local
127 if (!tls) { in getError()
130 EGLint error = tls->error; in getError()
131 tls->error = EGL_SUCCESS; in getError()
144 egl_tls_t* tls = (egl_tls_t *)pthread_getspecific(sKey); in getContext() local
145 if (!tls) return EGL_NO_CONTEXT; in getContext()
146 return tls->ctx; in getContext()