Home
last modified time | relevance | path

Searched refs:threadLocal (Results 1 – 4 of 4) sorted by relevance

/external/deqp/framework/delibs/dethread/win32/
DdeThreadLocalWin32.c42 void deThreadLocal_destroy (deThreadLocal threadLocal) in deThreadLocal_destroy() argument
44 DE_ASSERT(threadLocal != 0); in deThreadLocal_destroy()
45 TlsFree((DWORD)threadLocal); in deThreadLocal_destroy()
48 void* deThreadLocal_get (deThreadLocal threadLocal) in deThreadLocal_get() argument
50 DE_ASSERT(threadLocal != 0); in deThreadLocal_get()
51 return TlsGetValue((DWORD)threadLocal); in deThreadLocal_get()
54 void deThreadLocal_set (deThreadLocal threadLocal, void* value) in deThreadLocal_set() argument
56 DE_ASSERT(threadLocal != 0); in deThreadLocal_set()
57 TlsSetValue((DWORD)threadLocal, value); in deThreadLocal_set()
/external/deqp/framework/delibs/dethread/unix/
DdeThreadLocalUnix.c43 DE_INLINE pthread_key_t threadLocalToKey (deThreadLocal threadLocal) in threadLocalToKey() argument
45 DE_ASSERT(threadLocal != 0); in threadLocalToKey()
46 return (pthread_key_t)(threadLocal - 1); in threadLocalToKey()
57 void deThreadLocal_destroy (deThreadLocal threadLocal) in deThreadLocal_destroy() argument
60 ret = pthread_key_delete(threadLocalToKey(threadLocal)); in deThreadLocal_destroy()
65 void* deThreadLocal_get (deThreadLocal threadLocal) in deThreadLocal_get() argument
67 return pthread_getspecific(threadLocalToKey(threadLocal)); in deThreadLocal_get()
70 void deThreadLocal_set (deThreadLocal threadLocal, void* value) in deThreadLocal_set() argument
73 ret = pthread_setspecific(threadLocalToKey(threadLocal), value); in deThreadLocal_set()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DSoftThreadLocal.java12 private final ThreadLocal<SoftReference<T>> threadLocal = new ThreadLocal<SoftReference<T>>() { field in SoftThreadLocal
19 T item = threadLocal.get().get(); in get()
22 threadLocal.set(new SoftReference<>(item)); in get()
28 threadLocal.set(new SoftReference<>(item)); in set()
/external/deqp/framework/delibs/dethread/
DdeThreadLocal.h42 void deThreadLocal_destroy (deThreadLocal threadLocal);
44 void* deThreadLocal_get (deThreadLocal threadLocal);
45 void deThreadLocal_set (deThreadLocal threadLocal, void* value);