Home
last modified time | relevance | path

Searched refs:threadLocal (Results 1 – 15 of 15) 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/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DSharingWorkerClassTest.kt12 private val threadLocal = ThreadLocal<Int?>() constant
21 assertNull(threadLocal.get()) in <lambda>()
22 threadLocal.set(239) in <lambda>()
24 assertNull(threadLocal.get()) in <lambda>()
25 threadLocal.set(42) in <lambda>()
28 assertEquals(239, threadLocal.get()) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DUnconfinedConcurrentStressTest.kt15 private val threadLocal = ThreadLocal<Int>() in <lambda>() constant in kotlinx.coroutines.UnconfinedConcurrentStressTest
32 threadLocal.set(0) in <lambda>()
34 assertEquals(0, threadLocal.get()) in <lambda>()
36 assertEquals(id, threadLocal.get()) in <lambda>()
39 threadLocal.set(id) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DThreadContext.kt102 internal data class ThreadLocalKey(private val threadLocal: ThreadLocal<*>) : CoroutineContext.Key<… constant in ThreadLocalKey
106 private val threadLocal: ThreadLocal<T> constant in ThreadLocalElement
108 override val key: CoroutineContext.Key<*> = ThreadLocalKey(threadLocal)
111 val oldState = threadLocal.get() in updateThreadContext()
112 threadLocal.set(value) in updateThreadContext()
117 threadLocal.set(oldState) in restoreThreadContext()
130 override fun toString(): String = "ThreadLocal(value=$value, threadLocal = $threadLocal)"
/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/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-context-11.kt10 val threadLocal = ThreadLocal<String?>() // declare thread-local variable constant
13 threadLocal.set("main") in <lambda>()
15 val job = launch(Dispatchers.Default + threadLocal.asContextElement(value = "launch")) { in <lambda>()
/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);
/external/skia/experimental/ddlbench/
Dddlbench.cpp405 ThreadInfo* threadLocal = get_thread_local_info(); in main() local
406 printf("%s: dContext %p\n", threadLocal->fName.c_str(), in main()
407 threadLocal->fDirectContext); in main()
413 ThreadInfo* threadLocal = get_thread_local_info(); in main() local
414 printf("%s: dContext %p\n", threadLocal->fName.c_str(), in main()
415 threadLocal->fDirectContext); in main()
419 ThreadInfo* threadLocal = get_thread_local_info(); in main() local
420 threadLocal->fTestContext->makeNotCurrent(); in main()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/future/
DFutureTest.kt273 private val threadLocal = ThreadLocal<String>() in <lambda>() constant
278 … val future = CompletableFuture.supplyAsync(Supplier { threadLocal.set("value") }, it.executor) in <lambda>()
281 threadLocal.get() in <lambda>()
/external/slf4j/log4j-over-slf4j/compatibility/lib/
Dlogback-classic-0.9.8-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF ch/ ch/qos/ ch/ ...
/external/kotlinc/lib/
Dkotlinx-coroutines-core.jarMETA-INF/ META-INF/MANIFEST.MF kotlinx/ kotlinx/coroutines/ kotlinx/ ...
Dkotlin-compiler.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/backend-common. ...
/external/guice/extensions/persist/lib/
Dxwork-2.0.4.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/opensymphony/ com/ ...
/external/guice/extensions/struts2/lib/
Dxwork-core-2.2.1.jarMETA-INF/ META-INF/MANIFEST.MF xwork-validator-definition-1.0. ...